diff options
| author | 2020-02-25 21:39:26 -0500 | |
|---|---|---|
| committer | 2020-02-25 21:39:26 -0500 | |
| commit | 01a05b48b72a76b3a709cc82f8e1a9dd52eef7cd (patch) | |
| tree | 07873b2ad4cf4811ce1813fcd12bf06f74409811 /src/core | |
| parent | Merge pull request #3461 from ReinUsesLisp/r32i-rt (diff) | |
| parent | analog_from_button get direction implementation (diff) | |
| download | yuzu-01a05b48b72a76b3a709cc82f8e1a9dd52eef7cd.tar.gz yuzu-01a05b48b72a76b3a709cc82f8e1a9dd52eef7cd.tar.xz yuzu-01a05b48b72a76b3a709cc82f8e1a9dd52eef7cd.zip | |
Merge pull request #3431 from CJBok/npad-fix
InputCommon: analog_from_button get direction implementation
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/hle/service/hid/controllers/npad.cpp | 10 |
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) { | |||
| 287 | analog_state[static_cast<std::size_t>(JoystickId::Joystick_Left)]->GetAnalogDirectionStatus( | 287 | analog_state[static_cast<std::size_t>(JoystickId::Joystick_Left)]->GetAnalogDirectionStatus( |
| 288 | Input::AnalogDirection::DOWN)); | 288 | Input::AnalogDirection::DOWN)); |
| 289 | 289 | ||
| 290 | pad_state.r_stick_up.Assign(analog_state[static_cast<std::size_t>(JoystickId::Joystick_Right)] | ||
| 291 | ->GetAnalogDirectionStatus(Input::AnalogDirection::RIGHT)); | ||
| 292 | pad_state.r_stick_left.Assign(analog_state[static_cast<std::size_t>(JoystickId::Joystick_Right)] | ||
| 293 | ->GetAnalogDirectionStatus(Input::AnalogDirection::LEFT)); | ||
| 294 | pad_state.r_stick_right.Assign( | 290 | pad_state.r_stick_right.Assign( |
| 295 | analog_state[static_cast<std::size_t>(JoystickId::Joystick_Right)] | 291 | analog_state[static_cast<std::size_t>(JoystickId::Joystick_Right)] |
| 296 | ->GetAnalogDirectionStatus(Input::AnalogDirection::UP)); | 292 | ->GetAnalogDirectionStatus(Input::AnalogDirection::RIGHT)); |
| 293 | pad_state.r_stick_left.Assign(analog_state[static_cast<std::size_t>(JoystickId::Joystick_Right)] | ||
| 294 | ->GetAnalogDirectionStatus(Input::AnalogDirection::LEFT)); | ||
| 295 | pad_state.r_stick_up.Assign(analog_state[static_cast<std::size_t>(JoystickId::Joystick_Right)] | ||
| 296 | ->GetAnalogDirectionStatus(Input::AnalogDirection::UP)); | ||
| 297 | pad_state.r_stick_down.Assign(analog_state[static_cast<std::size_t>(JoystickId::Joystick_Right)] | 297 | pad_state.r_stick_down.Assign(analog_state[static_cast<std::size_t>(JoystickId::Joystick_Right)] |
| 298 | ->GetAnalogDirectionStatus(Input::AnalogDirection::DOWN)); | 298 | ->GetAnalogDirectionStatus(Input::AnalogDirection::DOWN)); |
| 299 | 299 | ||