Skip to content

Changed XRHandedness enum to use 'none' instead of '' #526

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 19, 2019
Merged

Conversation

toji
Copy link
Member

@toji toji commented Feb 15, 2019

Fixed #515.

Thanks to @HyroVitalyProtago for the suggestion! Empty string was definitely a weird enum, and so I do feel like it's appropriate to change it to a more representative string. I had suggested neutral in the issue, but upon thinking it through further I feel like @HyroVitalyProtago's original suggestion of none is more appropriate. This is because the input in question may not actually be associated with any hand at all, such as is the case with gaze input, whereas neutral implies to me that the input is actually associated with a hand but doesn't know or care which. i.e: A Vive wand that hasn't established it's spatial relationship yet strikes me as a "neutral" input device, while a cardboard device has no hand association whatsoever. In both cases none feels like an appropriate descriptor of the handedness.

@toji toji requested a review from NellWaliczek February 15, 2019 23:59
@toji toji added the agenda Request discussion in the next telecon/FTF label Feb 15, 2019
@NellWaliczek
Copy link
Member

As an aside, I'm inclined to change the gamepad mapping stuff I've been working on to say "none" instead of "neutral" to keep in sync. Yell if you object.

@toji toji merged commit a37e250 into master Feb 19, 2019
@toji toji deleted the handedness-none branch February 19, 2019 18:15
@cwilso cwilso removed agenda Request discussion in the next telecon/FTF labels Mar 27, 2019
@toji toji removed agenda Request discussion in the next telecon/FTF labels Mar 27, 2019
@AdaRoseCannon AdaRoseCannon added the ed:spec Include in newsletter, spec change label Mar 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ed:spec Include in newsletter, spec change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants