mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-02-16 10:30:47 +00:00
Add support for X1 and X2 mouse buttons
This commit is contained in:
committed by
Iwan Timmer
parent
c52ba9c041
commit
e21e2074e3
@@ -246,6 +246,12 @@ static bool evdev_handle_event(struct input_event *ev, struct input_device *dev)
|
||||
case BTN_RIGHT:
|
||||
mouseCode = BUTTON_RIGHT;
|
||||
break;
|
||||
case BTN_SIDE:
|
||||
mouseCode = BUTTON_X1;
|
||||
break;
|
||||
case BTN_EXTRA:
|
||||
mouseCode = BUTTON_X2;
|
||||
break;
|
||||
default:
|
||||
gamepadModified = true;
|
||||
if (dev->map == NULL)
|
||||
|
||||
Reference in New Issue
Block a user