From 4405eca443fb99c3cc7512c0e914d40a1304b5b2 Mon Sep 17 00:00:00 2001 From: Maschell Date: Thu, 27 Apr 2017 19:32:43 +0200 Subject: [PATCH] Adjusted stick sensitivity for the pro controller emulation --- patcher/ControllerPatcherUtils.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/patcher/ControllerPatcherUtils.cpp b/patcher/ControllerPatcherUtils.cpp index 15bfe56..3891681 100644 --- a/patcher/ControllerPatcherUtils.cpp +++ b/patcher/ControllerPatcherUtils.cpp @@ -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_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_y = (s16) (vpad_buffer->lstick.y * 1200.0f); - pro_buffer->r_stick_x = (s16) (vpad_buffer->rstick.x * 1200.0f); - pro_buffer->r_stick_y = (s16) (vpad_buffer->rstick.y * 1200.0f); + pro_buffer->l_stick_x = (s16) (vpad_buffer->lstick.x * 950.0f); + pro_buffer->l_stick_y = (s16) (vpad_buffer->lstick.y * 950.0f); + pro_buffer->r_stick_x = (s16) (vpad_buffer->rstick.x * 950.0f); + pro_buffer->r_stick_y = (s16) (vpad_buffer->rstick.y * 950.0f); 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.y = pro_buffer->pro.rstick_y; - vpad_buffer->btns_h = buttons_hold; - vpad_buffer->btns_d = (buttons_hold & (~*lastButtonsPressesVPAD)); - vpad_buffer->btns_r = (*lastButtonsPressesVPAD & (~buttons_hold)); + vpad_buffer->btns_h |= buttons_hold; + vpad_buffer->btns_d |= (buttons_hold & (~*lastButtonsPressesVPAD)); + vpad_buffer->btns_r |= (*lastButtonsPressesVPAD & (~buttons_hold)); *lastButtonsPressesVPAD = buttons_hold;