Provide detection and help for unmapped gamepads. Fixes #70

This commit is contained in:
Cameron Gutman
2018-09-29 19:14:52 -07:00
parent 1ad072236d
commit 4ad27670ec
6 changed files with 125 additions and 6 deletions
+5
View File
@@ -39,8 +39,13 @@ public:
void handleControllerDeviceEvent(SDL_ControllerDeviceEvent* event);
void handleJoystickArrivalEvent(SDL_JoyDeviceEvent* event);
int getAttachedGamepadMask();
static
QString getUnmappedGamepads();
private:
GamepadState*
findStateForGamepad(SDL_JoystickID id);