diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-02-18 16:25:48 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-18 16:25:48 -0500 |
commit | e531d1fae986addc7253e14bcc569c38ab50ccb0 (patch) | |
tree | 82b68c763271ac1d15112a536136f7462cacadfb /src/core/hid/emulated_devices.cpp | |
parent | 41183b622f2acc821f2c9b213f01029b33a993e5 (diff) | |
parent | 17207939e50b64592f93c623219b70d26272df4d (diff) |
Merge pull request #9815 from german77/qt-mouse
Qt: Fix mouse scalling
Diffstat (limited to 'src/core/hid/emulated_devices.cpp')
-rw-r--r-- | src/core/hid/emulated_devices.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/hid/emulated_devices.cpp b/src/core/hid/emulated_devices.cpp index 836f32c0f8..578a6ff612 100644 --- a/src/core/hid/emulated_devices.cpp +++ b/src/core/hid/emulated_devices.cpp @@ -34,9 +34,12 @@ void EmulatedDevices::ReloadInput() { // First two axis are reserved for mouse position key_index = 2; for (auto& mouse_device : mouse_analog_devices) { + // Mouse axis are only mapped on port 1, pad 0 Common::ParamPackage mouse_params; mouse_params.Set("engine", "mouse"); mouse_params.Set("axis", static_cast<int>(key_index)); + mouse_params.Set("port", 1); + mouse_params.Set("pad", 0); mouse_device = Common::Input::CreateInputDevice(mouse_params); key_index++; } |