mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2025-08-18 01:15:59 +00:00
Print a warning if an unmapped button is pressed
This commit is contained in:
parent
cd954e4935
commit
5f129e1988
@ -474,8 +474,10 @@ static bool input_handle_event(struct input_event *ev, struct input_device *dev)
|
||||
dev->leftTrigger = ev->value?UCHAR_MAX:0;
|
||||
else if (ev->code == dev->map.btn_tr2)
|
||||
dev->rightTrigger = ev->value?UCHAR_MAX:0;
|
||||
else
|
||||
else {
|
||||
fprintf(stderr, "Unmapped button: %d\n", ev->code);
|
||||
gamepadModified = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user