Re: [AD] Triggers under Linux

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


On Mon, Mar 16, 2015 at 8:13 AM, Max Savenkov <max.savenkov@xxxxxxxxxx> wrote:
To add some more confusion :)

1) Windows XInput driver already maps triggers to a single-axis separate
sticks with 0..1 range and has comment explaining this, so this seem to
be intentional
2) Windows DirectInput driver seem to have no notion of triggers. On my
gamepad, it reports them as buttons anyway. I wonder if that's true for
all gamepads...

Well, if a trigger is only reported as either a button or axis not much we can do about it.
 
3) MacOS X doesn't seem to support triggers-as-axis altogether and
reports them as buttons (then again, it only sees my gamepad in
DirectInput mode, where they are buttons even on Windows). According to
the latest documentation for the newest API
https://developer.apple.com/library/mac/documentation/GameController/Reference/GCGamePad_Ref/index.html#//apple_ref/doc/uid/TP40013199),
gamepads do not have triggers, period.


Of course they have triggers:
 
https://developer.apple.com/library/mac/documentation/GameController/Reference/GCExtendedGamePad_Ref/index.html#//apple_ref/occ/cl/GCExtendedGamepad
 
Also, on MacOS X right stick has only one axis and does not recognize
D-Pad at all. I think it's a bug :) I could investigate further, but I
only has MacOS on virtual machine and it will take some time, because
it's slow and sometimes painful process.

I think we are not using GameController but a different, more low level API there right now anyway, which gets all the info?


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