Some controllers don't send input events on each frame if input is active.
Overview
As I was trying to implement an example demo, I realized that input events didn't seem to be sent consistently.
Looking into a few of the controller classes I realized that we only send input events if the data has changed, but that doesn't mean we always send events for things like continuous button presses or joystick data.
Expected Behavior
Input events should be raised whenever data is availible and not at the considered "default" state. For example, a Joystick is pushed forward to 1, 0 should raise an event every frame saying that's what the current position of the joystick is from 0, 0 through 1, 0 and continue to raise events while the position is at 1, 0.
Actual Behavior
Input events are only raised when the data has changed, so we only ever get a single event that the joystick position changed from 0 through 1, but once it's at 1, 0 all events stop.
This would sometimes cause things to "Spring Back" to their initial position.
@StephenHodgson @keveleigh @johnppella we are experiencing similar issue in porting two-handed manipulation.
- When the first hand is down, it looks fine - gives first hand's source ID and single select event.
- Then, when the second hand is raised (not tapped yet), then first hand's source ID and the select event keeps firing.
- When second input is also down, the message stops but still Select event from first source ID only.
- When the first hand is up(released), then the second source ID and Select event keep firing.
You can find this debug example scene here: https://github.com/johnppella/MixedRealityToolkit-Unity/tree/feature/mrtk_development_TwoHandManip/Assets/MixedRealityToolkit-Examples/Demos/UX/TwoHandManipulation
this is a feature change, not adoption blocker, lets review in next shiproom
Reopening this as it is still an issue when for example trying to drive a rotation using a thumbstick. Once the thumbstick is pressed all the way its value won't change, events won't be raised and the rotation will stop.