diff options
| -rw-r--r-- | src/core/hid/emulated_console.cpp | 2 | ||||
| -rw-r--r-- | src/core/hid/emulated_controller.cpp | 2 | ||||
| -rw-r--r-- | src/input_common/drivers/mouse.cpp | 2 | ||||
| -rw-r--r-- | src/input_common/input_engine.cpp | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hid/emulated_console.cpp b/src/core/hid/emulated_console.cpp index 08f8af551..eef0ff493 100644 --- a/src/core/hid/emulated_console.cpp +++ b/src/core/hid/emulated_console.cpp | |||
| @@ -158,7 +158,7 @@ void EmulatedConsole::SetMotion(const Common::Input::CallbackStatus& callback) { | |||
| 158 | auto& motion = console.motion_state; | 158 | auto& motion = console.motion_state; |
| 159 | motion.accel = emulated.GetAcceleration(); | 159 | motion.accel = emulated.GetAcceleration(); |
| 160 | motion.gyro = emulated.GetGyroscope(); | 160 | motion.gyro = emulated.GetGyroscope(); |
| 161 | motion.rotation = emulated.GetGyroscope(); | 161 | motion.rotation = emulated.GetRotations(); |
| 162 | motion.orientation = emulated.GetOrientation(); | 162 | motion.orientation = emulated.GetOrientation(); |
| 163 | motion.quaternion = emulated.GetQuaternion(); | 163 | motion.quaternion = emulated.GetQuaternion(); |
| 164 | motion.gyro_bias = emulated.GetGyroBias(); | 164 | motion.gyro_bias = emulated.GetGyroBias(); |
diff --git a/src/core/hid/emulated_controller.cpp b/src/core/hid/emulated_controller.cpp index 13edb7332..d12037b11 100644 --- a/src/core/hid/emulated_controller.cpp +++ b/src/core/hid/emulated_controller.cpp | |||
| @@ -145,7 +145,7 @@ void EmulatedController::LoadDevices() { | |||
| 145 | motion_devices.begin(), Common::Input::CreateDevice<Common::Input::InputDevice>); | 145 | motion_devices.begin(), Common::Input::CreateDevice<Common::Input::InputDevice>); |
| 146 | std::transform(trigger_params.begin(), trigger_params.end(), trigger_devices.begin(), | 146 | std::transform(trigger_params.begin(), trigger_params.end(), trigger_devices.begin(), |
| 147 | Common::Input::CreateDevice<Common::Input::InputDevice>); | 147 | Common::Input::CreateDevice<Common::Input::InputDevice>); |
| 148 | std::transform(battery_params.begin(), battery_params.begin(), battery_devices.end(), | 148 | std::transform(battery_params.begin(), battery_params.end(), battery_devices.begin(), |
| 149 | Common::Input::CreateDevice<Common::Input::InputDevice>); | 149 | Common::Input::CreateDevice<Common::Input::InputDevice>); |
| 150 | std::transform(output_params.begin(), output_params.end(), output_devices.begin(), | 150 | std::transform(output_params.begin(), output_params.end(), output_devices.begin(), |
| 151 | Common::Input::CreateDevice<Common::Input::OutputDevice>); | 151 | Common::Input::CreateDevice<Common::Input::OutputDevice>); |
diff --git a/src/input_common/drivers/mouse.cpp b/src/input_common/drivers/mouse.cpp index aa69216c8..ac61591b0 100644 --- a/src/input_common/drivers/mouse.cpp +++ b/src/input_common/drivers/mouse.cpp | |||
| @@ -31,7 +31,7 @@ Mouse::Mouse(std::string input_engine_) : InputEngine(std::move(input_engine_)) | |||
| 31 | PreSetAxis(identifier, wheel_axis_x); | 31 | PreSetAxis(identifier, wheel_axis_x); |
| 32 | PreSetAxis(identifier, wheel_axis_y); | 32 | PreSetAxis(identifier, wheel_axis_y); |
| 33 | PreSetAxis(identifier, touch_axis_x); | 33 | PreSetAxis(identifier, touch_axis_x); |
| 34 | PreSetAxis(identifier, touch_axis_x); | 34 | PreSetAxis(identifier, touch_axis_y); |
| 35 | update_thread = std::jthread([this](std::stop_token stop_token) { UpdateThread(stop_token); }); | 35 | update_thread = std::jthread([this](std::stop_token stop_token) { UpdateThread(stop_token); }); |
| 36 | } | 36 | } |
| 37 | 37 | ||
diff --git a/src/input_common/input_engine.cpp b/src/input_common/input_engine.cpp index b57330e51..0508b408d 100644 --- a/src/input_common/input_engine.cpp +++ b/src/input_common/input_engine.cpp | |||
| @@ -173,7 +173,7 @@ void InputEngine::ResetButtonState() { | |||
| 173 | SetButton(controller.first, button.first, false); | 173 | SetButton(controller.first, button.first, false); |
| 174 | } | 174 | } |
| 175 | for (const auto& button : controller.second.hat_buttons) { | 175 | for (const auto& button : controller.second.hat_buttons) { |
| 176 | SetHatButton(controller.first, button.first, false); | 176 | SetHatButton(controller.first, button.first, 0); |
| 177 | } | 177 | } |
| 178 | } | 178 | } |
| 179 | } | 179 | } |