summaryrefslogtreecommitdiff
path: root/core/input
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-07-02 10:58:01 +0200
committerGitHub <noreply@github.com>2021-07-02 10:58:01 +0200
commit276f25688d30fc98822e65286675433e43dc2ad9 (patch)
tree9ca907f368c8d8a7e902910580d52ec4bf333cfe /core/input
parenteefe276a82c5ed080c10ac7c991e0348642621b2 (diff)
parentc6f28ed62b5b24033439e6c5d8517883d93c5f53 (diff)
Merge pull request #50065 from SirQuartz/patch-1
Add `action_get_deadzone()` method to `InputMap`
Diffstat (limited to 'core/input')
-rw-r--r--core/input/input_map.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/input/input_map.cpp b/core/input/input_map.cpp
index 52dc561546..b5f067d499 100644
--- a/core/input/input_map.cpp
+++ b/core/input/input_map.cpp
@@ -45,6 +45,7 @@ void InputMap::_bind_methods() {
ClassDB::bind_method(D_METHOD("erase_action", "action"), &InputMap::erase_action);
ClassDB::bind_method(D_METHOD("action_set_deadzone", "action", "deadzone"), &InputMap::action_set_deadzone);
+ ClassDB::bind_method(D_METHOD("action_get_deadzone", "action"), &InputMap::action_get_deadzone);
ClassDB::bind_method(D_METHOD("action_add_event", "action", "event"), &InputMap::action_add_event);
ClassDB::bind_method(D_METHOD("action_has_event", "action", "event"), &InputMap::action_has_event);
ClassDB::bind_method(D_METHOD("action_erase_event", "action", "event"), &InputMap::action_erase_event);