diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-08-21 21:10:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-21 21:10:22 +0200 |
commit | 1a4dbd9ee2fd471108dc4d217aacab74cf412925 (patch) | |
tree | 2563d9aa95cd5b9d5a1a15c76664df2e5d333be5 /core/os/input.h | |
parent | e132c36261e832b7b461d97909bf15786acc85ba (diff) | |
parent | 4061e5bb75cf4ad338cd077713946711cd7c70ea (diff) | |
download | redot-engine-1a4dbd9ee2fd471108dc4d217aacab74cf412925.tar.gz |
Merge pull request #31437 from volzhs/vibrate-mobile
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; |