MixedRealityToolkit-Unity icon indicating copy to clipboard operation
MixedRealityToolkit-Unity copied to clipboard

Some controllers don't send input events on each frame if input is active.

Open StephenHodgson opened this issue 7 years ago • 3 comments

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 avatar Dec 10 '18 23:12 StephenHodgson

@StephenHodgson @keveleigh @johnppella we are experiencing similar issue in porting two-handed manipulation.

  1. When the first hand is down, it looks fine - gives first hand's source ID and single select event.
  2. Then, when the second hand is raised (not tapped yet), then first hand's source ID and the select event keeps firing.
  3. When second input is also down, the message stops but still Select event from first source ID only.
  4. 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

cre8ivepark avatar Dec 11 '18 01:12 cre8ivepark

this is a feature change, not adoption blocker, lets review in next shiproom

Yoyozilla avatar Jan 10 '19 20:01 Yoyozilla

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.

luis-valverde-ms avatar May 15 '19 09:05 luis-valverde-ms