[SDL] relying on SDL_Joystick constants ?

Sam Lantinga slouken at twomix.devolution.com
Sat Sep 10 21:39:29 PDT 2005


> I have noticed that some joysticks without analog sticks return JOYAXISMOTION
> events instead of JOYHATMOTION events. I am going to make a backward
> conversion but I was wondering if other oddities may happen.

What platform are you running on?

If you're using Linux, there is some support in the SDL joystick code for
mapping axes to hats - take a look at src/joystick/linux/SDL_sysjoystick.c

	-Sam Lantinga, Software Engineer, Blizzard Entertainment




More information about the SDL mailing list