Hello everyone! I have trouble making an in-game menu for key remapping in VR. I didn’t find any specific tutorials so I’ve followed several ones on key remapping for non VR template but it doesn’t really work in VR…
First I don’t really get how to make the menu appear and disappear in front of your headset by pressing a button, for the moment it appears only on my right eye and is too close to the HMD.
Secondly, even though I managed to add my remapping settings on the prefab wrist menu of the VR template (just to test the remappings), the game doesn’t recognize the VR controller inputs when I try to change them. Does anyone know a good tutorial about this or have an idea on how to fix it? Thank you !
Update : I managed to modify the Menu BP from the VR template to allow easy spawning of my custom widget in front of me, just as I wanted!
However, I’m still facing an issue with remapping my VR keys. It seems that the “onkeyselector” I’m using in my widget isn’t compatible with VR inputs. Does anyone have any ideas on how to resolve this?
The OpenXR spec doesn’t support doing key remapping from within applications. They expect it to be done from the VR runtime instead, but at the moment, only the SteamVR runtime provides an remapping UI (and it’s pretty bad). If you need in-game rebinding support, you should tell Khoronos about it.
You could technically get around it by making generic actions for every button, and making your own binding system, although I don’t think it’s a good solution.
Ah… that’s really unfortunate, but thanks for the response! So if I understand correctly, OpenXR doesn’t support in-game remapping at all. However, if I still want to do it, I need to ensure that each button can execute all my actions independently, which might involve creating numerous IMCs, for example?
I’m not sure if it’s feasible to use the enhanced input system to do the rebinding (unless you just have a few options to switch between). You’d probably have to make another abstraction layer on top of it to map the action to new actions. I haven’t used it much though, so I could be wrong.