[SDL] Joystick tutorial
Barry Sperling
barry at angleinc.com
Fri Jun 29 06:39:33 PDT 2001
Hi All!
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?
Thanks,
Barry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20010629/69c291c2/attachment.htm>
More information about the SDL
mailing list