On Sat, Aug 4, 2012 at 7:03 PM, Glenn Maynard <glenn@zewt.org> wrote:
> I haven't tried to incorporate Florian's suggestion of using something
> like ArrayBuffer. That could be supported later, eg. by providing a
> readIntoBuffer(buffer) next to read(). That's too complex to try to tackle
> all at once.
I've had an idea how improve the issues around current state and button
misses.
- Some uses (like look/strafe/move etc.) that are served by an axis always
use current state. There is no benefit to know the event history leading up
to that state. So this would use the current state.
- Button uses always require all events as button press/release misses
would be bad. So this would get all events.
- A mixed model is where an axis is used with tresholds (like say a weapon
trigger with the index finger). A miss is not bad, but response accuracy
will improve from getting the event as close to the threshold as possible.
So this would inform the API of its thresholds for this axis, so events can
be issued when the high frequency polling detects the axis going over the
it.