2026-09-13 02:30:50

Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
lizzie
2026-09-13 02:30:50 +00:00
parent b4ea90a0a7
commit f6cff5fb11
+2 -2
View File
@@ -164,6 +164,8 @@ void Mouse::Move(int x, int y, int center_x, int center_y) {
void Mouse::NotifyChanged() {
auto const timestamp = Common::SteadyClock::Now();
if (button_pressed || has_moved) {
UpdateStickInput(timestamp);
UpdateMotionInput(timestamp);
has_moved = false;
} else {
// neutral due to no movement or press
@@ -183,8 +185,6 @@ void Mouse::NotifyChanged() {
.delta_timestamp = u64(std::chrono::duration_cast<std::chrono::microseconds>(timestamp - last_notify_timestamp).count()),
});
}
UpdateStickInput(timestamp);
UpdateMotionInput(timestamp);
last_notify_timestamp = timestamp;
}