mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-06-08 18:33:43 -04:00
fix games that expect null-delta motion events
Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
parent
ee48612a08
commit
b261f5f084
1 changed files with 2 additions and 1 deletions
|
|
@ -125,11 +125,12 @@ public:
|
|||
std::scoped_lock lock{mutex};
|
||||
const u64 sensor_timestamp = event.sensor_timestamp != 0 ? event.sensor_timestamp
|
||||
: event.timestamp;
|
||||
|
||||
if (last_motion_update == 0) {
|
||||
last_motion_update = sensor_timestamp;
|
||||
return false;
|
||||
}
|
||||
if (sensor_timestamp <= last_motion_update) {
|
||||
if (sensor_timestamp < last_motion_update) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue