mirror of
https://github.com/Maschell/controller_patcher.git
synced 2024-11-22 12:09:16 +01:00
Adjusted stick sensitivity for the pro controller emulation
This commit is contained in:
parent
a72f8e3879
commit
4405eca443
@ -737,10 +737,10 @@ CONTROLLER_PATCHER_RESULT_OR_ERROR ControllerPatcherUtils::translateToProWPADRea
|
|||||||
if(vpad_buffer->btns_h & VPAD_STICK_R_EMULATION_UP) buttons_hold |= WPAD_PRO_STICK_R_EMULATION_UP;
|
if(vpad_buffer->btns_h & VPAD_STICK_R_EMULATION_UP) buttons_hold |= WPAD_PRO_STICK_R_EMULATION_UP;
|
||||||
if(vpad_buffer->btns_h & VPAD_STICK_R_EMULATION_DOWN) buttons_hold |= WPAD_PRO_STICK_R_EMULATION_DOWN;
|
if(vpad_buffer->btns_h & VPAD_STICK_R_EMULATION_DOWN) buttons_hold |= WPAD_PRO_STICK_R_EMULATION_DOWN;
|
||||||
|
|
||||||
pro_buffer->l_stick_x = (s16) (vpad_buffer->lstick.x * 1200.0f);
|
pro_buffer->l_stick_x = (s16) (vpad_buffer->lstick.x * 950.0f);
|
||||||
pro_buffer->l_stick_y = (s16) (vpad_buffer->lstick.y * 1200.0f);
|
pro_buffer->l_stick_y = (s16) (vpad_buffer->lstick.y * 950.0f);
|
||||||
pro_buffer->r_stick_x = (s16) (vpad_buffer->rstick.x * 1200.0f);
|
pro_buffer->r_stick_x = (s16) (vpad_buffer->rstick.x * 950.0f);
|
||||||
pro_buffer->r_stick_y = (s16) (vpad_buffer->rstick.y * 1200.0f);
|
pro_buffer->r_stick_y = (s16) (vpad_buffer->rstick.y * 950.0f);
|
||||||
|
|
||||||
pro_buffer->buttons = buttons_hold;
|
pro_buffer->buttons = buttons_hold;
|
||||||
|
|
||||||
@ -796,9 +796,9 @@ CONTROLLER_PATCHER_RESULT_OR_ERROR ControllerPatcherUtils::translateToVPAD(VPADD
|
|||||||
vpad_buffer->rstick.x = pro_buffer->pro.rstick_x;
|
vpad_buffer->rstick.x = pro_buffer->pro.rstick_x;
|
||||||
vpad_buffer->rstick.y = pro_buffer->pro.rstick_y;
|
vpad_buffer->rstick.y = pro_buffer->pro.rstick_y;
|
||||||
|
|
||||||
vpad_buffer->btns_h = buttons_hold;
|
vpad_buffer->btns_h |= buttons_hold;
|
||||||
vpad_buffer->btns_d = (buttons_hold & (~*lastButtonsPressesVPAD));
|
vpad_buffer->btns_d |= (buttons_hold & (~*lastButtonsPressesVPAD));
|
||||||
vpad_buffer->btns_r = (*lastButtonsPressesVPAD & (~buttons_hold));
|
vpad_buffer->btns_r |= (*lastButtonsPressesVPAD & (~buttons_hold));
|
||||||
|
|
||||||
*lastButtonsPressesVPAD = buttons_hold;
|
*lastButtonsPressesVPAD = buttons_hold;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user