Permalink
Browse files

lilypad: Fix Lock Direction/Input/Both features

Regression was introduced in 2ea078b.

Coverity CID 178405.
  • Loading branch information...
turtleli committed Aug 27, 2017
1 parent 056cbbc commit 854f3d5b85b3a3f3539c2b6b8f26a786c738c7a8
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugins/LilyPad/LilyPad.cpp
@@ -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

0 comments on commit 854f3d5

Please sign in to comment.