summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorAndreas Haas <liu.gam3@gmail.com>2016-06-15 14:40:57 +0200
committerAndreas Haas <liu.gam3@gmail.com>2016-06-15 14:40:57 +0200
commit0e8b8600488971e5d452ad681bb41153ed8d34ad (patch)
tree6b2b981bb281d05d664595beefa74465a9f1d59c /main
parentf38f5c9e16c37e799fdcd2b71bbe7f9e66705a78 (diff)
Windows: Support gamepad vibration using XInput.
Diffstat (limited to 'main')
-rw-r--r--main/input_default.cpp2
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;
}