SDL joystick handling with multiple sticks
Posted 19 October 2008 - 08:47 PM
axis, be "event.jaxis.axis == 5"?.
Posted 19 October 2008 - 11:32 PM
EDIT: It sounds like you are using SDL_JoyAxisEvent. In that case, the axis field does indeed contain the index of the axis in which motion was detected.
Posted 20 October 2008 - 02:05 PM
" case SDL_JOYAXISMOTION && SDL_JOYBUTTONDOWN: "
Posted 20 October 2008 - 05:41 PM
I use C++ so it should work fine. But if does'nt I'll try a single one.
Posted 20 October 2008 - 05:55 PM
(By the way, it has nothing to do with C vs C++. Single & is a bitwise op, double && is a logical op. In this case, I thought you were looking at a bitfield, so the bitwise op would be the appropriate one to use.)
Posted 21 October 2008 - 12:06 AM
Posted 21 October 2008 - 02:19 PM
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users