mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2025-08-18 01:15:59 +00:00
Fix Y button
This commit is contained in:
parent
a85ac17f50
commit
ccc3d2914a
@ -347,12 +347,12 @@ static bool input_handle_event(struct input_event *ev, struct input_device *dev)
|
||||
gamepadCode = SPECIAL_FLAG;
|
||||
}
|
||||
|
||||
if (mouseCode > 0) {
|
||||
if (mouseCode != 0) {
|
||||
LiSendMouseButtonEvent(ev->value?BUTTON_ACTION_PRESS:BUTTON_ACTION_RELEASE, mouseCode);
|
||||
} else {
|
||||
gamepadModified = true;
|
||||
|
||||
if (gamepadCode > 0) {
|
||||
if (gamepadCode != 0) {
|
||||
if (ev->value)
|
||||
dev->buttonFlags |= gamepadCode;
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user