mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-06-17 06:11:36 +00:00
Fix xbox 360 wireless fallback mapping
This commit is contained in:
+2
-2
@@ -453,12 +453,12 @@ void evdev_create(const char* device, struct mapping* mappings, bool verbose) {
|
|||||||
} else if (strncmp("default", mappings->guid, 32) == 0)
|
} else if (strncmp("default", mappings->guid, 32) == 0)
|
||||||
default_mapping = mappings;
|
default_mapping = mappings;
|
||||||
else if (strncmp("xwc", mappings->guid, 32) == 0)
|
else if (strncmp("xwc", mappings->guid, 32) == 0)
|
||||||
default_mapping = mappings;
|
xwc_mapping = mappings;
|
||||||
|
|
||||||
mappings = mappings->next;
|
mappings = mappings->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mappings != NULL && strstr(name, "Xbox 360 Wireless Receiver") != NULL)
|
if (mappings == NULL && strstr(name, "Xbox 360 Wireless Receiver") != NULL)
|
||||||
mappings = xwc_mapping;
|
mappings = xwc_mapping;
|
||||||
|
|
||||||
bool is_keyboard = libevdev_has_event_code(evdev, EV_KEY, KEY_Q);
|
bool is_keyboard = libevdev_has_event_code(evdev, EV_KEY, KEY_Q);
|
||||||
|
|||||||
Reference in New Issue
Block a user