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"

Enabling/Disabling Mouse & Keyboard Input

Is there a way to enable/disable mouse & keyboard input? I'll be supporting gamepad controls and mouse/keyboard controls. However, I don't want both of them processed at the same time. Depending on player choice, I want to "mute" one of the input devices.

Product Version: UE 4.10
more ▼

asked May 25 '16 at 08:54 PM in Using UE4

avatar image

Ryan Darcey
821 46 40 67

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

1 answer: sort voted first

There may be a more glamorous way, but the first thing I think of is having both types of inputs run to the same code, but put an IF or something in between the inputs and the first node executed that prevents one method or another from firing. Or you could setup an Enumeration on the player controller that has two choices, Gamepad or Mouse/Keyboard, then do a "Switch on Enum" to determine which execution path occurs.

more ▼

answered May 26 '16 at 05:28 PM

avatar image

56 1 2 3

avatar image Ryan Darcey May 26 '16 at 05:29 PM

Yeah...I thought of that, but it's pretty cumbersome. It'd bloat the code/content quite a bit :/ Hoping to find that more glamorous way ;) Thanks for the suggestion, though!

(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