Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

Updated interaction event datum to better support events #413

Merged
merged 6 commits into from
Dec 15, 2019

Conversation

StephenHodgson
Copy link
Contributor

@StephenHodgson StephenHodgson commented Dec 13, 2019

XRTK - Mixed Reality Toolkit Change Request

Overview

I was having some issues getting the right single axis and bool events to raise properly, so I looked back into the interaction mapping implementation.

I setup a script to listen for trigger events and to do different things depending on the pressure used.
I noticed that the events were not coming through consistently and realized it was because the changed and updated flags were resetting each other, when in reality we want them to work independent of each other.

I renamed Changed to ControlActivated to better clarify that the flag is intended to be used for bool data specifically, and that any axis could potentially use the ControlActivated flag to determine if it's state had changed.

Now any axis can utilize the bool data along with the value that has been defined by the axis type.

Target of the change:

Is this enhancement for:

  • Core (core framework, interfaces and definitions)

Breaking Changes:

  • Renamed Changed to ControlActivated and updated to docs to better define it's use and function.

@StephenHodgson StephenHodgson added the In Progress PR currently still being developed label Dec 13, 2019
…ter clarify the use and intent of this flag

ControlActivated is a flag to enable any input to also send a flag to specify if it's currently at the "default" state
updated documentation and fixed updated flag for when the value isn't the same as last time or if it's the default value
@StephenHodgson StephenHodgson added Breaking Change Ready for review PR finished primary development, open for review and removed In Progress PR currently still being developed labels Dec 14, 2019
@StephenHodgson StephenHodgson changed the title Updated interaction event datum to better support single axis and bool events Updated interaction event datum to better support events Dec 14, 2019
@StephenHodgson StephenHodgson marked this pull request as ready for review December 14, 2019 20:51
@StephenHodgson StephenHodgson merged commit f07a138 into development Dec 15, 2019
@StephenHodgson StephenHodgson deleted the fix/bool-and-single-axis-events branch December 15, 2019 17:11
XRTK-Build-Bot pushed a commit that referenced this pull request Dec 17, 2019
* I was having some issues getting the right single axis and bool events to raise properly

* updated the naming of the Changed property to ControlActivated to better clarify the use and intent of this flag

ControlActivated is a flag to enable any input to also send a flag to specify if it's currently at the "default" state

* forgotten to save tests after rename

* updated tests

updated documentation and fixed updated flag for when the value isn't the same as last time or if it's the default value

* removed redundant array tests
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Breaking Change Ready for review PR finished primary development, open for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants