mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-22 10:51:50 -05:00
Corrected directional states sensitivity
This commit is contained in:
parent
83be9fc96d
commit
231d9c10f3
1 changed files with 8 additions and 8 deletions
|
@ -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.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_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.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());
|
||||
|
|
Loading…
Reference in a new issue