Re: [AD] Joystick bug in 4.9 |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On 2007-10-01, Trent Gamblin <trentg@xxxxxxxxxx> wrote:
> The directx joystick seems broken in the 4.9 branch. I fixed it by
> changing line 536 in wjoydxnu.c from
>
> ASSERT(joydx_num_joysticks > 0 && joydx_num_joysticks < MAX_JOYSTICKS-1);
>
> to:
>
> ASSERT(joydx_num_joysticks >= 0 && joydx_num_joysticks < MAX_JOYSTICKS-1);
>
>
> I just wanted to know if this makes sense to whoever (Peter?) wrote this
> before I commit it.
Looks fine. I probably just tested it with a joystick plugged in and
never without.
Peter