lilypad: Fix Lock Direction/Input/Both features

Regression was introduced in 2ea078beb5.

Coverity CID 178405.
This commit is contained in:
Jonathan Li 2017-08-27 01:03:45 +01:00
parent 056cbbcdcd
commit 854f3d5b85
1 changed files with 1 additions and 1 deletions

View File

@ -549,7 +549,7 @@ void Update(unsigned int port, unsigned int slot)
int cmd = b->command;
int state = dev->virtualControlState[b->controlIndex];
if (!(rapidFire & b->rapidFire)) {
if (cmd > 0x0F && cmd != 0x28) {
if ((cmd > 0x0F && cmd < 0x2A && cmd != 0x28) || cmd > 0x2C) {
ProcessButtonBinding(b, &s[port][slot], state);
} else if ((state >> 15) && !(dev->oldVirtualControlState[b->controlIndex] >> 15)) {
if (cmd == 0x0F) { // Mouse