Sign in to follow this  

Migrating joystick input from SDL 1.2 to 2.0 causing problems

This topic is 1498 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

As I'm working to update my game from SDL 1.2 to 2.0 I've run into a bit of a problem updating my joystick input.  I created a SDL_JoystickID from my existing joystick, but despite using SDL_Init(SDL_INIT_EVERYTHING), my SDL_Event queue doesn't want to seem to generate any joystick events.  It compiles just fine, and the other events work as they're supposed to.

 

Pastebin for the method in question is here.

http://pastebin.com/91efK7bC

 

This may have something to do with a conflict with OpenGL, as that is what I use for graphics.  Another thread detailing the same issues I'm having are here.

http://sdl.5483.n7.nabble.com/SDL2-Joystick-Events-not-working-td37763.html

Share this post


Link to post
Share on other sites
Sign in to follow this