[SDL] Joystick tutorial
barry at angleinc.com
Fri Jun 29 06:39:33 PDT 2001
I'm a newbie on SDL and reading the tutorials I found that the joystick hat function should be called with
if( event.jhat.hat | SDL_HAT_UP )
but it didn't work, and fooling around I came up with
if( event.jhat.value == SDL_HAT_UP )
and it worked. Is my way the correct one? Are there any other joystick corrections in the tutorial? A list of them somewhere?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SDL