Fix digital triggers

This commit is contained in:
Iwan Timmer
2017-06-19 21:56:22 +02:00
parent 04200f24c7
commit 0e4820e3a8
-2
View File
@@ -256,7 +256,6 @@ static bool evdev_handle_event(struct input_event *ev, struct input_device *dev)
} else if (gamepadCode != 0) { } else if (gamepadCode != 0) {
gamepadModified = true; gamepadModified = true;
if (gamepadCode != 0) {
if (ev->value) if (ev->value)
dev->buttonFlags |= gamepadCode; dev->buttonFlags |= gamepadCode;
else else
@@ -270,7 +269,6 @@ static bool evdev_handle_event(struct input_event *ev, struct input_device *dev)
gamepadModified = false; gamepadModified = false;
} }
} }
}
break; break;
case EV_REL: case EV_REL:
switch (ev->code) { switch (ev->code) {