1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-06 17:25:19 +00:00

Add two new default actions ui_end, ui_home

Used by Slider and Scrollbar
This commit is contained in:
Fabio Alessandrelli
2018-02-23 12:17:15 +01:00
parent ff122a7e1f
commit 920d2bfdfa
4 changed files with 34 additions and 33 deletions

View File

@@ -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");
}