Re: [AD] Win32 Joystick driver contrubution (fwd) |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
> The allegro wjoyw32.c joystick driver is not very functional. It does not
> work with joysticks with more than 2 axes and the hat-code (POV) can only
> detect 4 directions (no diagonals). I noticed this when trying to get my
> MS Sidewinder Precision 2 (3 axes + throttle and POV) to work with
> Allegro.
Two questions:
- I'm a little lost in the new axis order you're using: in the
poll_win32_joysticks() function, it's X,Y,R,Z,U,V,POV whereas in
init_win32_joysticks() you keep X,Y,Z,R,U,V,POV ?
- in joy_init(), you explicitly map the Z-axis to the throttle ?
> I have attatched a diff-file between wjoyw32.c (allegro 3.9.34) and my
> newer version. How does things go on from here?
I can't apply your patch to the wjoyw32.c file from 3.9.34 WIP (9 hunks
out of 12 are rejected). You likely didn't diff against the original file.
--
Eric Botcazou
ebotcazou@xxxxxxxxxx