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) {
gamepadModified = true;
if (gamepadCode != 0) {
if (ev->value)
dev->buttonFlags |= gamepadCode;
else
@@ -270,7 +269,6 @@ static bool evdev_handle_event(struct input_event *ev, struct input_device *dev)
gamepadModified = false;
}
}
}
break;
case EV_REL:
switch (ev->code) {