diff options
author | CJBok <cjbok@ziggo.nl> | 2020-01-14 21:51:58 +0100 |
---|---|---|
committer | CJBok <cjbok@ziggo.nl> | 2020-01-14 21:51:58 +0100 |
commit | 231d9c10f3eb17ebb36c47f0a91ebb6da78c0e87 (patch) | |
tree | 3fda0c7d15bbeceb29878c124332019233acf9b1 /src/core/hle/service/hid/controllers | |
parent | Merge remote-tracking branch 'upstream/master' (diff) | |
download | yuzu-231d9c10f3eb17ebb36c47f0a91ebb6da78c0e87.tar yuzu-231d9c10f3eb17ebb36c47f0a91ebb6da78c0e87.tar.gz yuzu-231d9c10f3eb17ebb36c47f0a91ebb6da78c0e87.tar.bz2 yuzu-231d9c10f3eb17ebb36c47f0a91ebb6da78c0e87.tar.lz yuzu-231d9c10f3eb17ebb36c47f0a91ebb6da78c0e87.tar.xz yuzu-231d9c10f3eb17ebb36c47f0a91ebb6da78c0e87.tar.zst yuzu-231d9c10f3eb17ebb36c47f0a91ebb6da78c0e87.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/hid/controllers/npad.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/core/hle/service/hid/controllers/npad.cpp b/src/core/hle/service/hid/controllers/npad.cpp index c3ce74e2b..12c8350bf 100644 --- a/src/core/hle/service/hid/controllers/npad.cpp +++ b/src/core/hle/service/hid/controllers/npad.cpp @@ -274,15 +274,15 @@ void Controller_NPad::RequestPadStateUpdate(u32 npad_id) { pad_state.d_right.Assign(button_state[DRight - BUTTON_HID_BEGIN]->GetStatus()); pad_state.d_down.Assign(button_state[DDown - BUTTON_HID_BEGIN]->GetStatus()); - pad_state.l_stick_left.Assign(stick_l_x_f < 0.0); - pad_state.l_stick_up.Assign(stick_l_y_f > 0.0); - pad_state.l_stick_right.Assign(stick_l_x_f > 0.0); - pad_state.l_stick_down.Assign(stick_l_y_f < 0.0); - - pad_state.r_stick_left.Assign(stick_r_x_f < 0.0); - pad_state.r_stick_up.Assign(stick_r_y_f > 0.0); - pad_state.r_stick_right.Assign(stick_r_x_f > 0.0); - pad_state.r_stick_down.Assign(stick_r_y_f < 0.0); + pad_state.l_stick_right.Assign(stick_l_x_f > 0.3f); + pad_state.l_stick_left.Assign(stick_l_x_f < -0.3f); + pad_state.l_stick_up.Assign(stick_l_y_f > 0.3f); + pad_state.l_stick_down.Assign(stick_l_y_f < -0.3f); + + pad_state.r_stick_right.Assign(stick_r_x_f > 0.3f); + pad_state.r_stick_left.Assign(stick_r_x_f < -0.3f); + pad_state.r_stick_up.Assign(stick_r_y_f > 0.3f); + pad_state.r_stick_down.Assign(stick_r_y_f < -0.3f); pad_state.left_sl.Assign(button_state[SL - BUTTON_HID_BEGIN]->GetStatus()); pad_state.left_sr.Assign(button_state[SR - BUTTON_HID_BEGIN]->GetStatus()); |