Less bind pressure for XInput too.

This commit is contained in:
KrossX 2016-01-18 19:36:02 -03:00
parent dafec4642c
commit e86e472d4f
1 changed files with 2 additions and 2 deletions

View File

@ -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) {