RE: [AD] demo of new joystick API |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: <alleg-developers@xxxxxxxxxx>
- Subject: RE: [AD] demo of new joystick API
- From: "Robert Ohannessian" <ROhannessian@xxxxxxxxxx>
- Date: Tue, 7 Sep 2004 00:30:45 -0700
- Thread-index: AcSUipG/zhSqAjkwQ1+1ExLVR0BUkwAIcqbw
- Thread-topic: [AD] demo of new joystick API
> 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.