The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Game Controllers and Joystick Events
IntellectualKitty


Joined: 05 Oct 2016
Posts: 1
From my reading of Wiki, GameControllers are built on top of the Joystick API; in fact, they seem to be Joysticks since a joystick device index is returned by both SDL_JOYDEVICEADDED and SDL_CONTROLLERDEVICEADDED events, with the difference being that if SDL_IsGameController for the joystick device index returns true that the GameController functions are also available in addition to the Joystick functions.

My question is whether or not the Joystick system can be used exclusively. I have a simple application and I would prefer to just implement Joystick events. If I do not initialize the GameController sub-system, will joystick devices that are also game controllers produce joystick events instead of game controller events? Or will they be unrecognized?