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"

Is it possible to change which player uses which gamepad/keyboard at runtime?

I'm trying to make a local multiplayer game and I reached a logical dead-end when trying to set up keyboard/gamepads for play.

I know its possible to have player 1 on a keyboard and the other players on gamepads or all player on gamepads by skipping assigning gamepad to player 1, but what I'm trying to do is to have a press a key to join system where each player are assigned to the gamepad/keyboard mouse they pressed an input on first.

Is it possible to directly assign gamepad/keyboard mous to a controller/player at runtime?

Product Version: UE 4.20
more ▼

asked Aug 20 '18 at 10:30 PM in Using UE4

avatar image

116 6 12 17

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

I never found a way to do this myself in blueprints, but what I did was create a system for rerouting the inputs from one playercontroller to another playercontroller. I had a data structure that keeps track of which player routes to which other player's functions.

I am sure there is a much better way. I just haven't found it yet.

more ▼

answered Dec 07 '18 at 06:29 PM

avatar image

3.7k 18 23 20

avatar image shaipo Dec 07 '18 at 06:32 PM

I forgot about this question, but I essentially came to the same conclusion.

I give the choice of using keyboard or gamepad at startup which then changes a bool variable that redirects input depending on the chosen inpute method to the right player controller.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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