diff options
author | volzhs <volzhs@gmail.com> | 2019-08-18 00:27:29 +0900 |
---|---|---|
committer | volzhs <volzhs@gmail.com> | 2019-08-21 23:38:53 +0900 |
commit | 4061e5bb75cf4ad338cd077713946711cd7c70ea (patch) | |
tree | c5785dda4fffaf01ed6d751b9638dea62421d257 /core/os/input.h | |
parent | 86371b7298e32356c8ce892f768c56bec7088292 (diff) | |
download | redot-engine-4061e5bb75cf4ad338cd077713946711cd7c70ea.tar.gz |
Support vibration for Android and iOS
Diffstat (limited to 'core/os/input.h')
-rw-r--r-- | core/os/input.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/os/input.h b/core/os/input.h index de04f239e6..a12ded176b 100644 --- a/core/os/input.h +++ b/core/os/input.h @@ -100,6 +100,7 @@ public: virtual uint64_t get_joy_vibration_timestamp(int p_device) = 0; virtual void start_joy_vibration(int p_device, float p_weak_magnitude, float p_strong_magnitude, float p_duration = 0) = 0; virtual void stop_joy_vibration(int p_device) = 0; + virtual void vibrate_handheld(int p_duration_ms = 500) = 0; virtual Point2 get_mouse_position() const = 0; virtual Point2 get_last_mouse_speed() const = 0; |