diff options
author | Andreas Haas <liu.gam3@gmail.com> | 2016-06-15 14:40:57 +0200 |
---|---|---|
committer | Andreas Haas <liu.gam3@gmail.com> | 2016-06-15 14:40:57 +0200 |
commit | 0e8b8600488971e5d452ad681bb41153ed8d34ad (patch) | |
tree | 6b2b981bb281d05d664595beefa74465a9f1d59c /main | |
parent | f38f5c9e16c37e799fdcd2b71bbe7f9e66705a78 (diff) |
Windows: Support gamepad vibration using XInput.
Diffstat (limited to 'main')
-rw-r--r-- | main/input_default.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/input_default.cpp b/main/input_default.cpp index a6f14ae1f5..6c759f95e6 100644 --- a/main/input_default.cpp +++ b/main/input_default.cpp @@ -327,7 +327,7 @@ void InputDefault::start_joy_vibration(int p_device, float p_weak_magnitude, flo vibration.weak_magnitude = p_weak_magnitude; vibration.strong_magnitude = p_strong_magnitude; vibration.duration = p_duration; - vibration.timestamp = OS::get_singleton()->get_unix_time(); + vibration.timestamp = OS::get_singleton()->get_ticks_usec(); joy_vibration[p_device] = vibration; } |