Using UE5.5.1 + SteamVR.
I am trying to modify the VRTemplate project so that simple objects can be picked up and thrown using triggers instead of grips. This currently works. However, when I pick up the Pistol object, which applies a higher-priority context for trigger presses, the lower-priority Default context keeps firing events for the input and keeps trying to “re-grab” the gun. While this is happening, I can still press that same trigger input to fire the pistol.
As I understand it, we’re supposed to get an input flush when going between contexts/priorities, but the project itself does point out the following:
This is what tells Enhanced Input to use our Mapping Context. Setting “ActionSet” (OpenXR term) priority at Runtime is currently a work-in-progress, and as such, setting priority on these nodes may or may not have an effect, depending on if the runtime has implemented it. However, setting priority in the Player Mappable Input config works as intended.
I’ve tried a few things: listening for Triggered, Started, and Completed; changing the Priority of the IMC when its added; and changing it by default in Project Settings (which caused even weirder behaviors). I’m not sure if I’ve found a bug, or if I just don’t understand the input system correctly. SOS!