summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-02-26 03:39:26 +0100
committerGitHub <noreply@github.com>2020-02-26 03:39:26 +0100
commit01a05b48b72a76b3a709cc82f8e1a9dd52eef7cd (patch)
tree07873b2ad4cf4811ce1813fcd12bf06f74409811 /src/core
parentMerge pull request #3461 from ReinUsesLisp/r32i-rt (diff)
parentanalog_from_button get direction implementation (diff)
downloadyuzu-01a05b48b72a76b3a709cc82f8e1a9dd52eef7cd.tar
yuzu-01a05b48b72a76b3a709cc82f8e1a9dd52eef7cd.tar.gz
yuzu-01a05b48b72a76b3a709cc82f8e1a9dd52eef7cd.tar.bz2
yuzu-01a05b48b72a76b3a709cc82f8e1a9dd52eef7cd.tar.lz
yuzu-01a05b48b72a76b3a709cc82f8e1a9dd52eef7cd.tar.xz
yuzu-01a05b48b72a76b3a709cc82f8e1a9dd52eef7cd.tar.zst
yuzu-01a05b48b72a76b3a709cc82f8e1a9dd52eef7cd.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/hid/controllers/npad.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/hle/service/hid/controllers/npad.cpp b/src/core/hle/service/hid/controllers/npad.cpp
index 15c09f04c..c1e32b28c 100644
--- a/src/core/hle/service/hid/controllers/npad.cpp
+++ b/src/core/hle/service/hid/controllers/npad.cpp
@@ -287,13 +287,13 @@ void Controller_NPad::RequestPadStateUpdate(u32 npad_id) {
analog_state[static_cast<std::size_t>(JoystickId::Joystick_Left)]->GetAnalogDirectionStatus(
Input::AnalogDirection::DOWN));
- pad_state.r_stick_up.Assign(analog_state[static_cast<std::size_t>(JoystickId::Joystick_Right)]
- ->GetAnalogDirectionStatus(Input::AnalogDirection::RIGHT));
- pad_state.r_stick_left.Assign(analog_state[static_cast<std::size_t>(JoystickId::Joystick_Right)]
- ->GetAnalogDirectionStatus(Input::AnalogDirection::LEFT));
pad_state.r_stick_right.Assign(
analog_state[static_cast<std::size_t>(JoystickId::Joystick_Right)]
- ->GetAnalogDirectionStatus(Input::AnalogDirection::UP));
+ ->GetAnalogDirectionStatus(Input::AnalogDirection::RIGHT));
+ pad_state.r_stick_left.Assign(analog_state[static_cast<std::size_t>(JoystickId::Joystick_Right)]
+ ->GetAnalogDirectionStatus(Input::AnalogDirection::LEFT));
+ pad_state.r_stick_up.Assign(analog_state[static_cast<std::size_t>(JoystickId::Joystick_Right)]
+ ->GetAnalogDirectionStatus(Input::AnalogDirection::UP));
pad_state.r_stick_down.Assign(analog_state[static_cast<std::size_t>(JoystickId::Joystick_Right)]
->GetAnalogDirectionStatus(Input::AnalogDirection::DOWN));