mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-04-16 13:30:35 +00:00
Rename QUIT_MODIFIERS and MODIFIERS constants to ACTION_MODIFIERS
For consistency in the evdev, sdl and x11 input drivers.
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <poll.h>
|
||||
|
||||
#define MODIFIERS (MODIFIER_SHIFT|MODIFIER_ALT|MODIFIER_CTRL)
|
||||
#define ACTION_MODIFIERS (MODIFIER_SHIFT|MODIFIER_ALT|MODIFIER_CTRL)
|
||||
|
||||
static Display *display;
|
||||
static Window window;
|
||||
@@ -56,7 +56,7 @@ static int x11_handler(int fd) {
|
||||
case KeyPress:
|
||||
case KeyRelease:
|
||||
if (event.xkey.keycode >= 8 && event.xkey.keycode < (sizeof(keyCodes)/sizeof(keyCodes[0]) + 8)) {
|
||||
if ((keyboard_modifiers & MODIFIERS) == MODIFIERS && event.type == KeyRelease) {
|
||||
if ((keyboard_modifiers & ACTION_MODIFIERS) == ACTION_MODIFIERS && event.type == KeyRelease) {
|
||||
if (event.xkey.keycode == 0x18)
|
||||
return LOOP_RETURN;
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user