Re: [AD] Triggers under Linux

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


On Tue, Mar 17, 2015 at 11:59 AM, Max Savenkov <max.savenkov@xxxxxxxxxx> wrote:
>
> > we could just use SDLs joystick database that way - not using any SDL code.
>
> Can't just use SDL database. They map axis in different ways (this was
> discussed in forums when I was trying to make controller_db addon).
>

Oh, can't use it 1:1, but for example if you want to know which axis is a trigger, simply go through the SDL mappings and find which two axes correspond to trigger left and trigger right. (I don't know how to find the GUID for the joystick but that shouldn't be hard.)


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