mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 04:06:14 +00:00
Fix the joystick vibration timestamp
This commit is contained in:
parent
d4359b2d09
commit
913e3206db
@ -365,7 +365,7 @@ void InputDefault::stop_joy_vibration(int p_device) {
|
||||
vibration.weak_magnitude = 0;
|
||||
vibration.strong_magnitude = 0;
|
||||
vibration.duration = 0;
|
||||
vibration.timestamp = OS::get_singleton()->get_unix_time();
|
||||
vibration.timestamp = OS::get_singleton()->get_ticks_usec();
|
||||
joy_vibration[p_device] = vibration;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user