mirror of
https://github.com/mitch030504/Wiicompiled_VR_Frame.git
synced 2026-10-06 08:00:25 +02:00
Unknown controller support
This commit is contained in:
1 parent
edd03f8991
commit
21b57f08a4
6 files changed
+539
No files matched your search
@@ -294,6 +294,15 @@ void process_event(SDL_Event& event) {
|
||||
});
|
||||
break;
|
||||
}
|
||||
case SDL_EVENT_GAMEPAD_REMAPPED: {
|
||||
if (input::refresh_controller(event.gdevice.which)) {
|
||||
g_events.push_back(AuroraEvent{
|
||||
.type = AURORA_CONTROLLER_ADDED,
|
||||
.controller = event.gdevice.which,
|
||||
});
|
||||
}
|
||||
break;
|
||||
}
|
||||
case SDL_EVENT_GAMEPAD_REMOVED: {
|
||||
input::remove_controller(event.gdevice.which);
|
||||
g_events.push_back(AuroraEvent{
|
||||
|
||||
Reference in new issue
Block a user