Forum Discussion
motorsep
8 years agoStart Partner
[Gear VR] Examples for controller / buttons mapping ?
Two questions in one :)
#1. Are there any example projects from Oculus for Gear VR controller (BP-only) with controller/hand mesh and fully functionality included, for UE 4.15.2 ? (I assume 4.15.1 won't have support for Gear VR controller)
#2. Would it be possible to map controller buttons however we please, while keeping HMD's touchpad and buttons function as intended by default ? (for example, I want to use volume buttons on the controller for something else other than volume; same goes for home/back buttons on the controller)
Thanks
#1. Are there any example projects from Oculus for Gear VR controller (BP-only) with controller/hand mesh and fully functionality included, for UE 4.15.2 ? (I assume 4.15.1 won't have support for Gear VR controller)
#2. Would it be possible to map controller buttons however we please, while keeping HMD's touchpad and buttons function as intended by default ? (for example, I want to use volume buttons on the controller for something else other than volume; same goes for home/back buttons on the controller)
Thanks
8 Replies
Replies have been turned off for this discussion
- leotrapHonored GuestWhat happened with all this? Does anyone make it work?
- motorsepStart PartnerSorry folks, but that example from github is ... bizarre. I don't get how that BP code related to GearVRController component.
Can someone please explain how to set it up properly ? - Anonymous
rpalandri said:
Hey @aussieburgerVR, I was wondering, how do you sample IsControllerActive? We recommend querying it every frame, to handle the controller being connected/disconnected (running out of battery), and also because usually the first frame will report IsControllerActive as false (needs time to connect to the game). Let me know if you still have issues there.
Yeah I figured that out :) I ended up querying on every button press since the player is often pressing one of the buttons and needs to do so after the intro - seemed a bit for performance than querying every frame
It might be nice as an improvement to offer a GearVR Controller Event when it becomes activated? - motorsepStart Partner@rpalandri Ah, I see. Btw, any good reason for restricting buttons remapping on the controller ?
- rpalandriExpert ProtegeHey @aussieburgerVR, I was wondering, how do you sample IsControllerActive? We recommend querying it every frame, to handle the controller being connected/disconnected (running out of battery), and also because usually the first frame will report IsControllerActive as false (needs time to connect to the game). Let me know if you still have issues there.
@motorsep : FYI the first public release that will have GearVR controller integration is 4.16. Releases like 4.15.1/2 are just bugfix releases, not releases with big features like a new controller :) - motorsepStart Partner
aussieburgerVR said:
2: Button mappings are listed however: "The volume and home buttons are reserved."
One thing I haven't worked out yet is if the user is playing with the controller or not - "is controller active" appears to return false for me.
Oh, that's pretty awful :/ Controller could have a ton of extra keys if they were remappable. Why dub volume buttons if headset has them already :/
Would you please ping here if you figure out that issue with active controller node? - AnonymousOculus have already documented your queries here:
https://developer3.oculus.com/documentation/game-engines/latest/concepts/unreal-input/#unreal-gear-vr-controller
1: There is an example project: "We provide a sample called GearVRControllerSample in the directory <install>/Samples/Oculus."
It's not 100% perfect since it does not use the gearvr controller component with the controller mesh but it's easy to switch to it instead of using the default motion controller like in the example.
2: Button mappings are listed however: "The volume and home buttons are reserved."
One thing I haven't worked out yet is if the user is playing with the controller or not - "is controller active" appears to return false for me.
PS: it's already live in the latest Oculus branch as per: https://forums.oculus.com/developer/discussion/51262/unreal-engine-4-integration-1-13-released-march-30th-2017
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 2 years ago