From e86e472d4ffcb9b591d910e8efc7826fec1525c7 Mon Sep 17 00:00:00 2001 From: KrossX Date: Mon, 18 Jan 2016 19:36:02 -0300 Subject: [PATCH] Less bind pressure for XInput too. --- plugins/LilyPad/InputManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/LilyPad/InputManager.cpp b/plugins/LilyPad/InputManager.cpp index ccf9ed4636..43142b9633 100644 --- a/plugins/LilyPad/InputManager.cpp +++ b/plugins/LilyPad/InputManager.cpp @@ -419,8 +419,8 @@ Device *InputDeviceManager::GetActiveDevice(InitInfo *info, unsigned int *uid, i if (((devices[i]->virtualControls[j].uid>>16) & 0xFF) == RELAXIS) { diff = diff/4+1; } - // Less pressure needed to bind DS3 buttons. - if (devices[i]->api == DS3 && (((devices[i]->virtualControls[j].uid>>16) & 0xFF) & BUTTON)) { + // Less pressure needed to bind DS3/SCP buttons. + if ((devices[i]->api == DS3 || devices[i]->api == XINPUT) && (((devices[i]->virtualControls[j].uid>>16) & 0xFF) & BUTTON)) { diff *= 4; } if (diff > bestDiff) {