mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-06-18 14:50:56 +00:00
Fix digital triggers
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user