mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-10-20 15:27:18 +00:00
Add meta modifiers
This commit is contained in:
1 parent
b71862d622
commit
5215271b60
2 files changed
+8
No files matched your search
@@ -240,6 +240,10 @@ static bool evdev_handle_event(struct input_event *ev, struct input_device *dev)
|
||||
case KEY_RIGHTCTRL:
|
||||
modifier = MODIFIER_CTRL;
|
||||
break;
|
||||
case KEY_LEFTMETA:
|
||||
case KEY_RIGHTMETA:
|
||||
modifier = MODIFIER_META;
|
||||
break;
|
||||
}
|
||||
if (modifier != 0) {
|
||||
if (ev->value)
|
||||
|
||||
@@ -160,6 +160,10 @@ int sdlinput_handle_event(SDL_Event* event) {
|
||||
case SDLK_LCTRL:
|
||||
modifier = MODIFIER_CTRL;
|
||||
break;
|
||||
case SDLK_RGUI:
|
||||
case SDLK_LGUI:
|
||||
modifier = MODIFIER_META;
|
||||
break;
|
||||
}
|
||||
|
||||
if (modifier != 0) {
|
||||
|
||||
Reference in new issue
Block a user