Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Disabling the keyboard when a controller is detected

Hey everyone. I think the title is pretty self explanatory. I'm building a game in VR using UE4, and I've just included support for the Oculus Rift motion controllers. Problem is Unreal still recognizes the keyboard as a viable input option, even when I'm actively using the controllers. Is there any way to dynamically change the input options in project settings, so as to prevent this ?

Thanks in advance

Product Version: UE 4.19
more ▼

asked Mar 29 '18 at 04:59 PM in C++ Programming

avatar image

6 2

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

I fixed this by creating new Input and Action mappings in the project settings for each different input device I wanted to have ( like say MoveForwardPC and MoveForwardOculus for an example ), then creating a new Action mapping, which I assigned to a random Key ( K in my case ) that, when called, directly emptied the Input Components Axis Mappings TArray and called Clear Action Bindings on it too. I then proceeded to rebind the Axis and Action events on the now empty arrays to the same functions as before, except now using the mappings from the other input device that wasn't being used ( so if originally MoveForwardPC was bound, pressing K would now bind the MoveForwardOculus mapping and so on and so forth ).

With this I effectively managed to silence the input from the keyboard when using the Oculus motion controllers and vice versa.

I dont think this is an optimal solution but it works well enough for now. I may return to it in the future in order to find a way to dynamically silence a current device's input when another device is plugged in. I'll be sure to share my solution if I do.

more ▼

answered Apr 05 '18 at 03:41 PM

avatar image

6 2

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question