Re: [AD] Hotplug joysticks |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: "Coordination of admins/developers of the game programming library Allegro" <alleg-developers@xxxxxxxxxx>
- Subject: Re: [AD] Hotplug joysticks
- From: Anders Andersson <trezker@xxxxxxxxxx>
- Date: Thu, 19 Aug 2010 07:24:53 +0200
I'd like to see two new events. ALLEGRO_EVENT_JOYSTICK_PLUGGED and
ALLEGRO_EVENT_JOYSTICK_UNPLUGGED.
In which you can easily determine if you've lost or gained a joystick
that was used in the program and for instance pause the game as
appropriate.
As for joysticks that don't get automatically reported a function for
reinstalling/polling is good. It could generate unplugged and plugged
events.
At least the unplugged event can come from its joystick event source.
But I wonder where the plugged event would come from.