Re: [AD] Hotplug joysticks

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


Maybe it's best to do something like...

al_get_num_joysticks
  if (!al_event_source_needs_to_emit_events(system_event_source))
    return unmodified num_joysticks and do no updating.

On 2010-08-18, at 11:19 AM, Trent Gamblin wrote:=
> On 2010-08-18, at 11:14 AM, Evert Glebbeek <eglebbk@xxxxxxxxxx> wrote:
>> To me, it seems that this change would not cause existing code to behave differently under the same circumstances (ie, you don't plug in or unplug a joystick). Based on that, I think it's fine to push this off to 5.1.
>> Please correct me if I'm wrong.
> 
> That's partially true. The problem is if users start calling al_get_num_josticks willy nilly their program could break with 5.1.





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