Joystick object naming with linux event interface

Hi,

It appears that the linux joystick event driver is capable of detecting the
names of various axis. For example it correctly detects identifies the
slider on my wingman force 3d as “throttle”. However, SDL events for this
axis just come in as “axis 3”. But my code needs to know that the axis
refers to the slider and not some other object. Are there any plans to make
SDL expose the names provided by the driver?

Or is it better to solve this problem by implementing an application level
axis map that is user customizable? (axis 0 = x, axis 1 = y, axis 2 = rz,
etc…) I assume hardcoding an axis map is not a good idea, since axis 3
might be slider on my system but rz on another.

Thanks,

  • jq

I have the same problem. I want to optionally be able
support throttle on joysticks like the WingMan Action
pad which has a throttle on the top but I have to have
a table of joysticks now to match axis 3 to that
particular joystick… ack…

Alan

— John Quigley wrote:> Hi,

It appears that the linux joystick event driver is
capable of detecting the
names of various axis. For example it correctly
detects identifies the
slider on my wingman force 3d as “throttle”.
However, SDL events for this
axis just come in as “axis 3”. But my code needs to
know that the axis
refers to the slider and not some other object. Are
there any plans to make
SDL expose the names provided by the driver?

Or is it better to solve this problem by
implementing an application level
axis map that is user customizable? (axis 0 = x,
axis 1 = y, axis 2 = rz,
etc…) I assume hardcoding an axis map is not a
good idea, since axis 3
might be slider on my system but rz on another.

Thanks,

  • jq

SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions!
http://auctions.yahoo.com