summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hid/emulated_console.cpp3
-rw-r--r--src/core/hid/emulated_devices.cpp3
2 files changed, 5 insertions, 1 deletions
diff --git a/src/core/hid/emulated_console.cpp b/src/core/hid/emulated_console.cpp
index 1c91bbe40..17d663379 100644
--- a/src/core/hid/emulated_console.cpp
+++ b/src/core/hid/emulated_console.cpp
@@ -23,7 +23,8 @@ void EmulatedConsole::SetTouchParams() {
23 23
24 // We can't use mouse as touch if native mouse is enabled 24 // We can't use mouse as touch if native mouse is enabled
25 if (!Settings::values.mouse_enabled) { 25 if (!Settings::values.mouse_enabled) {
26 touch_params[index++] = Common::ParamPackage{"engine:mouse,axis_x:10,axis_y:11,button:0"}; 26 touch_params[index++] =
27 Common::ParamPackage{"engine:mouse,axis_x:0,axis_y:1,button:0,port:2"};
27 } 28 }
28 29
29 touch_params[index++] = 30 touch_params[index++] =
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 }