diff options
| author | Andreas Haas | 2016-06-21 17:06:41 +0200 |
|---|---|---|
| committer | Andreas Haas | 2016-06-21 17:06:41 +0200 |
| commit | 6d09183c44e6db0ca1896f50f8727e55716dd85c (patch) | |
| tree | 85a544b45e9af714270ed6c25315d3c9737ffc9b /core/os/input.cpp | |
| parent | 81a5e4238d43891442556c5ed208a15ee938b2cd (diff) | |
| download | godot-6d09183c44e6db0ca1896f50f8727e55716dd85c.tar.gz godot-6d09183c44e6db0ca1896f50f8727e55716dd85c.tar.zst godot-6d09183c44e6db0ca1896f50f8727e55716dd85c.zip | |
Diffstat (limited to 'core/os/input.cpp')
| -rw-r--r-- | core/os/input.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/os/input.cpp b/core/os/input.cpp index 005a248aa..dacddc092 100644 --- a/core/os/input.cpp +++ b/core/os/input.cpp @@ -61,7 +61,7 @@ void Input::_bind_methods() { ObjectTypeDB::bind_method(_MD("get_joy_guid","device"),&Input::get_joy_guid); ObjectTypeDB::bind_method(_MD("get_joy_vibration_strength", "device"), &Input::get_joy_vibration_strength); ObjectTypeDB::bind_method(_MD("get_joy_vibration_duration", "device"), &Input::get_joy_vibration_duration); - ObjectTypeDB::bind_method(_MD("start_joy_vibration", "device", "weak_magnitude", "strong_magnitude", "duration"), &Input::start_joy_vibration); + ObjectTypeDB::bind_method(_MD("start_joy_vibration", "device", "weak_magnitude", "strong_magnitude", "duration"), &Input::start_joy_vibration, DEFVAL(0)); ObjectTypeDB::bind_method(_MD("stop_joy_vibration", "device"), &Input::stop_joy_vibration); ObjectTypeDB::bind_method(_MD("get_accelerometer"),&Input::get_accelerometer); ObjectTypeDB::bind_method(_MD("get_magnetometer"),&Input::get_magnetometer); |
