Re: [AD] Problems with gamepad on MacOS X and general thoughts

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


After removing those lines from somewhere else, I get it to compile.
Previously one of my joysticks had only one stick in Allegro, with 3 axes.
Now I have 3 sticks but the first stick has a Z axis which should be the X
axis of the second stick. The dpad works though, as the third stick. Second
stick's up/down axis is reflected as the X axis in Allegro.

-----Original Message-----
From: Trent Gamblin [mailto:trent@xxxxxxxxxx] 
Sent: March 24, 2015 2:37 PM
To: 'Allegro Development'
Subject: Re: [AD] Problems with gamepad on MacOS X and general thoughts

The patch doesn't apply cleanly. The part about "Fill in
ALLEGRO_JOYSTICK..." where you removed a dozen or so lines fails. Your
patched original looks different than what I have in Allegro git. Did you
apply over some existing changes?

-----Original Message-----
From: Max Savenkov [mailto:max.savenkov@xxxxxxxxxx]
Sent: March 24, 2015 1:51 PM
To: alleg-developers@xxxxxxxxxx
Subject: Re: [AD] Problems with gamepad on MacOS X and general thoughts

OK, here's the patch for hidjoy.m. I only patched the 10.5+ version.

It fixes my problem where there were more Z-axes than X-axes, and the number
of sticks was wrong, and also adds support for "Hatswitch", which represents
D-pad on my gamepad. I could find no documentation on the way Hatswitch
reports values, but from looking at other peoples' code, I decided to just
hard-code 8 directions (Apple documentation for working with HID devices is
lacking a lot of details).


----------------------------------------------------------------------------
--
Dive into the World of Parallel Programming The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
--
https://lists.sourceforge.net/lists/listinfo/alleg-developers





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