It's a strange thread anyway, as it is a question about joystick, and then turns into a discussion about allegro. The title should be updated to reflect that.
Afaik jedi used to have a joystick header that interfaced with DirectX/input. That was in 32-bit only times, so might need updates.