RE: [AD] demo of new joystick API

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


 
> Hmm, I guess this is none too popular.  How do you guys want to do it?
> Do you mean to put the equivalent of AL_JOYSTATE directly into the
> AL_JOYSTICK structure?

I was thinking of explicit functions to gett the joystick state, as
opposed to yet another publicly visible struct.


> Hmm, I've never seen an OS-level driver work with floats though, so
it's
> always going to incur some penalty.  My thinking was, if we leave the
> floating point conversion & division to the user, it can be avoided
when
> unnecessary.  The background thread is processing joystick axis
> movements all the time, regardless of whether the user cares about
that
> particular axis.  If you guys thinks that's okay, we can go with the
> floats.

I don't think it's very expensive. Input tends to be low-bandwidth.





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