Add support for select+start to open Steam overlay

This commit is contained in:
Cameron Gutman
2015-01-09 23:31:16 -05:00
parent 1b629bc55d
commit 3190c61a0a

View File

@@ -78,7 +78,8 @@
_emulatingButtonFlags &= ~EMULATING_SELECT;
}
if ((_emulatingButtonFlags & EMULATING_SPECIAL) &&
((releasedButtons & RB_FLAG) || (releasedButtons & PLAY_FLAG))) {
((releasedButtons & RB_FLAG) || (releasedButtons & PLAY_FLAG) ||
(releasedButtons & BACK_FLAG))) {
_lastButtonFlags &= ~SPECIAL_FLAG;
_emulatingButtonFlags &= ~EMULATING_SPECIAL;
}
@@ -94,10 +95,10 @@
_lastButtonFlags &= ~(pressedButtons & (PLAY_FLAG | LB_FLAG));
_emulatingButtonFlags |= EMULATING_SELECT;
}
// If RB and start are down, trigger special
else if (_lastButtonFlags & RB_FLAG) {
// If (RB or select) and start are down, trigger special
else if ((_lastButtonFlags & RB_FLAG) || (_lastButtonFlags & BACK_FLAG)) {
_lastButtonFlags |= SPECIAL_FLAG;
_lastButtonFlags &= ~(pressedButtons & (PLAY_FLAG | RB_FLAG));
_lastButtonFlags &= ~(pressedButtons & (PLAY_FLAG | RB_FLAG | BACK_FLAG));
_emulatingButtonFlags |= EMULATING_SPECIAL;
}
}