diff options
| author | Narr the Reg <juangerman-13@hotmail.com> | 2023-02-21 12:41:34 -0600 |
|---|---|---|
| committer | Narr the Reg <juangerman-13@hotmail.com> | 2023-02-21 19:48:38 -0600 |
| commit | 9477181d09518a183c8241af620a1df4f0c839f8 (patch) | |
| tree | b98a3e9bafe0a934bc0c42296cb64012fec4a849 /src/core/hle/service/hid/controllers/mouse.cpp | |
| parent | 8f3e2a1b48a4f83c90a3b8bf10dd1dc661a69958 (diff) | |
core: hid: Fix native mouse mappings
Diffstat (limited to 'src/core/hle/service/hid/controllers/mouse.cpp')
| -rw-r--r-- | src/core/hle/service/hid/controllers/mouse.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/service/hid/controllers/mouse.cpp b/src/core/hle/service/hid/controllers/mouse.cpp index b11cb438d..0afc66681 100644 --- a/src/core/hle/service/hid/controllers/mouse.cpp +++ b/src/core/hle/service/hid/controllers/mouse.cpp @@ -33,10 +33,11 @@ void Controller_Mouse::OnUpdate(const Core::Timing::CoreTiming& core_timing) { return; } + next_state = {}; + const auto& last_entry = shared_memory->mouse_lifo.ReadCurrentEntry().state; next_state.sampling_number = last_entry.sampling_number + 1; - next_state.attribute.raw = 0; if (Settings::values.mouse_enabled) { const auto& mouse_button_state = emulated_devices->GetMouseButtons(); const auto& mouse_position_state = emulated_devices->GetMousePosition(); |
