Aframe: laser-controls should use trigger for GearVR

Created on 5 Apr 2018  路  17Comments  路  Source: aframevr/aframe

Currently, laser-controls uses trackpad button for both Daydream (which has no trigger) and for GearVR. However, the GearVR controller does have a trigger, and A-Frame should use that by default for consistency with native usage.

For example, at the moment one uses the trigger to click the enter VR button when on an A-Frame laser-controls page in Oculus Browser on GearVR, but then one needs to start using the trackpad instead once in VR, which seems / feels odd.

help wanted (easy)

Most helpful comment

@payamspot yeah, you know the drill already. Some people feel intimidated and having some issues like this one are good to build confidence. You鈥檙e alredy in pretty good shape

All 17 comments

"help wanted" you mean test it on GearVR? @dmarcos

I have GearVR with controller, what should i change in my code to test this?

I think "help wanted" means looking for folks to submit the fix as a pull request to this A-Frame source code repository... and "(easy)" means the required change is simple / straightforward so it is ideal for first-time participants.

Basically, just need to make the GearVR line mentioned above that specifies trackpad down and up
look like the other lines that specify trigger down and up instead.

Thank you so much for explaining @machenmusik

done :) hopefully i did it correctly

@payamspot you did it good 馃檪It would be nice to leave it for someone that has not contributed yet. Are you ok with that?

We can take your PR if nobody volunteers

sure @dmarcos that's a great idea. although it's my 4th contribution on github ever :)

@payamspot yeah, you know the drill already. Some people feel intimidated and having some issues like this one are good to build confidence. You鈥檙e alredy in pretty good shape

many thanks @payamspot for your patience and understanding!

The trackpad on the Controller corresponds to the trackpad on the headset. Has this been tested to ensure users with only a headset can still use laser-controls, with the trackpad button?

I am not sure that would have worked in the first place actually, unless you have both controller and trackpad, since the GearVR trackpad on the side of the headset does not have a pose, and therefore will not be utilized by tracked-controls which laser-controls builds upon...

The description of laser-controls implies that it downgrades to a gaze cursor when no 3DOF or 6DOF controller is available. However, you're right, it does not actually do so. :-(

Proceed!

I'd like to warn, that Right Trigger AND Touchpad on the Gear VR controller map to the same thing. For this reason we would expect that if using laser-controls either input would be allowed. We originally did not want the trigger to be activation because we wanted it to be grab, but its like a 50/50 split as to whether or not people use the touchpad or Trigger when activating something, so we wound up just mapping both to the same action and giving up on having the extra button be used for something else.

Thanks @DigiTec - so for native consistency it should have both sets of events rather than one or the other

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jcarpenter picture jcarpenter  路  4Comments

ghost picture ghost  路  3Comments

huhsame picture huhsame  路  3Comments

FranciscoPinho picture FranciscoPinho  路  3Comments

micahnut picture micahnut  路  5Comments