mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2025-08-17 17:06:10 +00:00
Fix D-Pad Y-axis input handling
This commit is contained in:
parent
b84d11072c
commit
bd130ed003
@ -426,11 +426,11 @@ static bool input_handle_event(struct input_event *ev, struct input_device *dev)
|
||||
} else if (ev->code == dev->map.abs_dpad_y) {
|
||||
int dir = input_convert_value_direction(ev, dev, &dev->dpadyParms, dev->map.reverse_dpad_y);
|
||||
if (dir == 1) {
|
||||
dev->buttonFlags |= UP_FLAG;
|
||||
dev->buttonFlags &= ~DOWN_FLAG;
|
||||
} else if (dir == 0) {
|
||||
dev->buttonFlags |= DOWN_FLAG;
|
||||
dev->buttonFlags &= ~UP_FLAG;
|
||||
} else if (dir == 0) {
|
||||
dev->buttonFlags &= ~DOWN_FLAG;
|
||||
dev->buttonFlags &= ~UP_FLAG;
|
||||
} else {
|
||||
dev->buttonFlags &= ~DOWN_FLAG;
|
||||
dev->buttonFlags |= UP_FLAG;
|
||||
|
Loading…
x
Reference in New Issue
Block a user