Jump to content

  • Log In with Google      Sign In   
  • Create Account


Migrating joystick input from SDL 1.2 to 2.0 causing problems


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
No replies to this topic

#1 Abster   Members   -  Reputation: 149

Like
0Likes
Like

Posted 11 December 2013 - 06:50 AM

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



Sponsor:



Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS