diff options
| author | 2023-02-16 13:38:50 -0600 | |
|---|---|---|
| committer | 2023-02-16 14:22:13 -0600 | |
| commit | 17207939e50b64592f93c623219b70d26272df4d (patch) | |
| tree | 38387309d337d39398538f6d6c30e5db242e8d34 /src/core/hid/emulated_devices.cpp | |
| parent | Qt: Fix mouse scalling (diff) | |
| download | yuzu-17207939e50b64592f93c623219b70d26272df4d.tar.gz yuzu-17207939e50b64592f93c623219b70d26272df4d.tar.xz yuzu-17207939e50b64592f93c623219b70d26272df4d.zip | |
input_common: Split mouse input into individual devices
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 836f32c0f..578a6ff61 100644 --- a/src/core/hid/emulated_devices.cpp +++ b/src/core/hid/emulated_devices.cpp | |||
| @@ -34,9 +34,12 @@ void EmulatedDevices::ReloadInput() { | |||
| 34 | // First two axis are reserved for mouse position | 34 | // First two axis are reserved for mouse position |
| 35 | key_index = 2; | 35 | key_index = 2; |
| 36 | for (auto& mouse_device : mouse_analog_devices) { | 36 | for (auto& mouse_device : mouse_analog_devices) { |
| 37 | // Mouse axis are only mapped on port 1, pad 0 | ||
| 37 | Common::ParamPackage mouse_params; | 38 | Common::ParamPackage mouse_params; |
| 38 | mouse_params.Set("engine", "mouse"); | 39 | mouse_params.Set("engine", "mouse"); |
| 39 | mouse_params.Set("axis", static_cast<int>(key_index)); | 40 | mouse_params.Set("axis", static_cast<int>(key_index)); |
| 41 | mouse_params.Set("port", 1); | ||
| 42 | mouse_params.Set("pad", 0); | ||
| 40 | mouse_device = Common::Input::CreateInputDevice(mouse_params); | 43 | mouse_device = Common::Input::CreateInputDevice(mouse_params); |
| 41 | key_index++; | 44 | key_index++; |
| 42 | } | 45 | } |