VR input focus for keyboard gamepaid controller

I have a UMG such that I’m able to change between UMG input and Game input using SetInputMode.

However I use the exact same project/code for VR and it doesn’t work. Keyboard / gamepad / motion controller input gets sent to UMG, but when I change to (game and input mode), my game input doesn’t work (no input is received).

I think I figured out the problem (though I haven’t fixed it yet). I have two different APawn’s - one for VR and one for non-VR. The non-VR one binds to action input using InputComponent->BindAxis()… What a mess!

Though I can probably share a lot of the code by having the two APawn’s derive from a common parent class.