[SDL] Re: relying on SDL_Joystick constants ?

Guillaume Denis denis at cri.ensmp.fr
Thu Sep 15 00:30:44 PDT 2005


Sam Lantinga <slouken <at> twomix.devolution.com> writes:

> 
> > 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
> 

I am going to have a look at this code, but I develop for Windows.
Thanks, Guillaume





More information about the SDL mailing list