summaryrefslogtreecommitdiffstats
path: root/core/os/input.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-09-01 18:58:52 -0300
committerJuan Linietsky <reduzio@gmail.com>2016-09-01 18:59:46 -0300
commit5b96c3a5527c1b2989dbfbe625f1c763b8887334 (patch)
tree6fbd6ed3703a3f8514e0e45eb590aeac7bc1284d /core/os/input.cpp
parent3759d378da7ceab382b31b86d69bb90b9eeaba90 (diff)
downloadredot-engine-5b96c3a5527c1b2989dbfbe625f1c763b8887334.tar.gz
-Modified Input and added is_action_just_pressed() as well as is_action_just_released()
Diffstat (limited to 'core/os/input.cpp')
-rw-r--r--core/os/input.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/os/input.cpp b/core/os/input.cpp
index 531db73838..401ab7ffe2 100644
--- a/core/os/input.cpp
+++ b/core/os/input.cpp
@@ -53,6 +53,8 @@ void Input::_bind_methods() {
ObjectTypeDB::bind_method(_MD("is_mouse_button_pressed","button"),&Input::is_mouse_button_pressed);
ObjectTypeDB::bind_method(_MD("is_joy_button_pressed","device","button"),&Input::is_joy_button_pressed);
ObjectTypeDB::bind_method(_MD("is_action_pressed","action"),&Input::is_action_pressed);
+ ObjectTypeDB::bind_method(_MD("is_action_just_pressed","action"),&Input::is_action_just_pressed);
+ ObjectTypeDB::bind_method(_MD("is_action_just_released","action"),&Input::is_action_just_released);
ObjectTypeDB::bind_method(_MD("add_joy_mapping","mapping", "update_existing"),&Input::add_joy_mapping, DEFVAL(false));
ObjectTypeDB::bind_method(_MD("remove_joy_mapping","guid"),&Input::remove_joy_mapping);
ObjectTypeDB::bind_method(_MD("is_joy_known","device"),&Input::is_joy_known);