mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-02-16 10:30:47 +00:00
Provide gamepad mask at startup
This commit is contained in:
@@ -91,6 +91,8 @@ static bool* currentReverse;
|
||||
|
||||
static bool grabbingDevices;
|
||||
|
||||
int evdev_gamepads = 0;
|
||||
|
||||
#define QUIT_MODIFIERS (MODIFIER_SHIFT|MODIFIER_ALT|MODIFIER_CTRL)
|
||||
#define QUIT_KEY KEY_Q
|
||||
#define QUIT_BUTTONS (PLAY_FLAG|BACK_FLAG|LB_FLAG|RB_FLAG)
|
||||
@@ -495,6 +497,9 @@ void evdev_create(const char* device, struct mapping* mappings, bool verbose) {
|
||||
mappings = default_mapping;
|
||||
}
|
||||
|
||||
if (!is_keyboard && !is_mouse)
|
||||
evdev_gamepads++;
|
||||
|
||||
int dev = numDevices;
|
||||
numDevices++;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user