Re: [AD] Hotplug joysticks

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 2010-08-18, at 10:57 PM, Peter Wang wrote:
> Keep in mind we need some way to identify joysticks that users can
> relate to.  For input configuration screens it's better to show
> "Joystick 1" than some arbitrary "Joystick 8d7f".
> (al_get_joystick_name should be used as well but in right now it just
> says "Joystick" :-P)

For that we might be able to get a string name of the joystick for
USB devices. Failing that, you can use the index.

> *Something* also needs to be semi-persistent so input mappings can be
> stored to disk with some level of confidence.

We can return a driver defined array of bytes with a length for this. On
Windows, each joystick has a GUID which is persistant, and I assume
on other platforms there's something similar.




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/