diff options
| author | Gilles Roudiere | 2018-02-21 22:06:34 +0100 |
|---|---|---|
| committer | Gilles Roudiere | 2018-04-16 23:20:43 +0200 |
| commit | ebfa731012e854d26d800b5abd56745cf9935098 (patch) | |
| tree | 80aa3afea97179d817224eadd902612f446a5e3b /core/os/input.cpp | |
| parent | 93ae37f11848d481ca02a10c86812c40dec5e561 (diff) | |
| download | godot-ebfa731012e854d26d800b5abd56745cf9935098.tar.gz godot-ebfa731012e854d26d800b5abd56745cf9935098.tar.zst godot-ebfa731012e854d26d800b5abd56745cf9935098.zip | |
Diffstat (limited to 'core/os/input.cpp')
| -rw-r--r-- | core/os/input.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/os/input.cpp b/core/os/input.cpp index 1d7cd7c79..fe24e86e1 100644 --- a/core/os/input.cpp +++ b/core/os/input.cpp @@ -57,6 +57,7 @@ void Input::_bind_methods() { ClassDB::bind_method(D_METHOD("is_action_pressed", "action"), &Input::is_action_pressed); ClassDB::bind_method(D_METHOD("is_action_just_pressed", "action"), &Input::is_action_just_pressed); ClassDB::bind_method(D_METHOD("is_action_just_released", "action"), &Input::is_action_just_released); + ClassDB::bind_method(D_METHOD("get_action_strength", "action"), &Input::get_action_strength); ClassDB::bind_method(D_METHOD("add_joy_mapping", "mapping", "update_existing"), &Input::add_joy_mapping, DEFVAL(false)); ClassDB::bind_method(D_METHOD("remove_joy_mapping", "guid"), &Input::remove_joy_mapping); ClassDB::bind_method(D_METHOD("joy_connection_changed", "device", "connected", "name", "guid"), &Input::joy_connection_changed); @@ -118,7 +119,7 @@ void Input::get_argument_options(const StringName &p_function, int p_idx, List<S #ifdef TOOLS_ENABLED String pf = p_function; - if (p_idx == 0 && (pf == "is_action_pressed" || pf == "action_press" || pf == "action_release" || pf == "is_action_just_pressed" || pf == "is_action_just_released")) { + if (p_idx == 0 && (pf == "is_action_pressed" || pf == "action_press" || pf == "action_release" || pf == "is_action_just_pressed" || pf == "is_action_just_released" || pf == "get_action_strength")) { List<PropertyInfo> pinfo; ProjectSettings::get_singleton()->get_property_list(&pinfo); |
