Welcome to the Oculus Developer Forums!

Your participation on the forum is subject to the Oculus Code of Conduct.

In general, please be respectful and kind. If you violate the Oculus Code of Conduct, your access to the developer forums may be revoked at the discretion of Oculus staff.

[Gear VR] Motion controller buttons mapping in 4.19 ?

motorsepmotorsep Posts: 1,471 Oculus Start Member
edited February 2018 in Unreal Development
I am updating my project to 4.19 and I am having difficulties with mapping touchpad correctly.

Currently I am using MotionController (R) Trigger for controller's trigger and MotionController (R) FaceButton 6 for touchpad press (used to use MotionController R Thumbstick). However, those two work identically. So whether I pull the trigger or press down the touchpad (press it as a button, dead in the center), it calls the same function in my BP code. By design though, trigger pull should call one function, and touchpad should call entirely different function.

I followed Epic's official docs, but that don't seem to work as described. Using launcher version of UE 4.19p3. I am using prototype motion controller, not the retail one (although I doubt it's a hardware flaw).

Can someone please help me ?

Comments

  • motorsepmotorsep Posts: 1,471 Oculus Start Member
    I've been messing with this issue last night and came to conclusion that for whatever reason button mapping from Epic's docs doesn't work with my motion controller at all. Could be hardware fault (I am using a prototype controller, before it was released to the public) or could be that launcher version is missing something, or 4.19 is different than 4.17 (which is what the docs for I believe).

    So none of the MotionController FaceButton buttons work. Instead, MotionController Thumbstick Up/Down/Left/Right work. The major issue with that (again, could be the hardware issue) is that I have to press those directions quite precisely for them to work.

    I opted out for MotionController Thumbstick X/Y which works as touch on the motion controller's touchpad, but I haven't finished implementing this scheme.

    I sure hope Oculus Go support isn't as bad as Gear VR support in UE4 :/
  • motorsepmotorsep Posts: 1,471 Oculus Start Member
    @imperativity

    I dug deeper and this is what works for me on Gear VR with Motion controller in UE 4.19p4:

    Trigger is MotionController (R) Trigger
    Touchpad press is  MotionController (R) Thumbstick
    Touchpad directions (as if it was a D-Pad) are  MotionController (R) Thumbstick Up/Down/Left/Right

    Touching Touchpad returns "Touch1" name. I haven't checked if Touch1 input event works for it.

    Also, if touching Touchpad is indeed Touch1 event, then I am not sure how swipes on the Touchpad would work :/
  • motorsepmotorsep Posts: 1,471 Oculus Start Member
    @imperativity
    I was told that Go's controller has no d-pad, so touchpad top/left/right/bottom won't work. Is that correct ?
  • MagnagroupMagnagroup Posts: 0
    NerveGear
    Hi @imperativity  and @motorsep

    I am very new to UE4. I am trying to create a player which will move forward with Gear VR motion controller by pressing a trigger button. I read the documentation and imported a Pawn from Gear VR Motion Controller Touchpad Input Example Project to see if it works. It worked and I can see the coordinates of my finger location on the touchpad. However, I couldn't achieve my goal to make the player move forward while pressing the button, as there is no clear example of how to do that. 

    Could you please help? It's quite urgent o:) Hope I can benefit from your great experience.

    Thanks a mil!
  • MagnagroupMagnagroup Posts: 0
    NerveGear
    Hi @imperativity  and @motorsep

    I am very new to UE4. I am trying to create a player which will move forward with Gear VR motion controller by pressing a trigger button. I read the documentation and imported a Pawn from Gear VR Motion Controller Touchpad Input Example Project to see if it works. It worked and I can see the coordinates of my finger location on the touchpad. However, I couldn't achieve my goal to make the player move forward while pressing the button, as there is no clear example of how to do that. 

    Could you please help? It's quite urgent o:) Hope I can benefit from your great experience.

    Thanks a mil!
  • motorsepmotorsep Posts: 1,471 Oculus Start Member
    Hi @imperativity  and @motorsep

    I am very new to UE4. I am trying to create a player which will move forward with Gear VR motion controller by pressing a trigger button. I read the documentation and imported a Pawn from Gear VR Motion Controller Touchpad Input Example Project to see if it works. It worked and I can see the coordinates of my finger location on the touchpad. However, I couldn't achieve my goal to make the player move forward while pressing the button, as there is no clear example of how to do that. 

    Could you please help? It's quite urgent o:) Hope I can benefit from your great experience.

    Thanks a mil!
    Before anything, just try making a Gear VR project using mobile FPS template in UE4. That's what I did first - got a test project running on Gear VR. From that I kept working my way up until I figure out basic input and then got to the motion controller.

    Tbh, you are better off not using Oculus samples as most of those are useless and outdated. Oculus supports Unity very well, but not UE4.
  • NeontopNeontop Posts: 225 Oculus Start Member
    At the moment it is not easy for us(UE4 dev) but let's keep a positive  spirit .
     ;) 

  • RuptureGamesRuptureGames Posts: 25
    Brain Burst
    Anyone else noticing that the "back" button on the go controller doesn't stay pressed?  When I look at the firing events for this button it will register pressed but then immediately registers released - before I've actually let go of the button.  Is this intended behavior? 
Sign In or Register to comment.