summaryrefslogtreecommitdiff
path: root/core/input_map.cpp
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2018-03-16 20:55:11 +0100
committerGitHub <noreply@github.com>2018-03-16 20:55:11 +0100
commitc531262190d7b75238e60565a3a59f13feed2ffa (patch)
tree8bed4bea6d93cb8478a9a4cda0cd6f746014d318 /core/input_map.cpp
parente06a56eac8c1fbf36e985697d3b6b1a66ec8ac0e (diff)
parent920d2bfdfa582b81b0e47d8a0a5de5817289c6dc (diff)
Merge pull request #16947 from Faless/ui_actions
GUI elements ui_action usage, improvements
Diffstat (limited to 'core/input_map.cpp')
-rw-r--r--core/input_map.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/input_map.cpp b/core/input_map.cpp
index a9ea1d9545..bd03d61196 100644
--- a/core/input_map.cpp
+++ b/core/input_map.cpp
@@ -282,6 +282,16 @@ void InputMap::load_default() {
key->set_scancode(KEY_PAGEDOWN);
action_add_event("ui_page_down", key);
+ add_action("ui_home");
+ key.instance();
+ key->set_scancode(KEY_HOME);
+ action_add_event("ui_home", key);
+
+ add_action("ui_end");
+ key.instance();
+ key->set_scancode(KEY_END);
+ action_add_event("ui_end", key);
+
//set("display/window/handheld/orientation", "landscape");
}