Download

Keyboard = p1 gamepad = p2 please!

Title says it all… lol

OK so the feature I’m requesting is when I do a “Create Player” and my screen gets split. I can use my keyboard to control Player 1 and my gamepad to control Player 2. I know that right now UE4 has the option to control P2 with a 2nd gamepad but I would think it would help folks like myself with just 1 gamepad (I have no console).

If this feature can be achieved via blueprint let me know so I can stop day dreaming :slight_smile:

Go to Play -> Advanced Settings -> Set ‘Number of Players’ to 2 -> Check ‘Route 1st Gamepad to 2nd Client’.

Does that work?

If it does then they should really move it under Project Settings -> Input.

Edit: Another user said it only works for separate windows, my bad.

Edit2: Definitely agree with what you said below. Really surprised they don’t already allow this seeing as how getting the controllers right should come before anything else.

Yeah I found that out too. I really wish they add this feature. It will help test SplitSCreen for folks who have 1 controller and 1 keyboard only.

Just to Quote my other thread:

Hello,

as I understand, right now when you do local multiplayer, player 1 will always be controlled by Gamepad1 and Keyboard / Mouse. This means, to use local coop, you effectivly need 2 Gamepads. I don’t think that this really is practical at all, since a lot of people don’t have two gamepads for their PCs. From a players point of view, it seems to be reasonable to assume, that for local coop, you could use your keyboard for one player and your gamepad for another player. Also, a lot of games allow for local coop, where both players use the same keyboard (wasd) vs arrow keys.
It would be great, if you guys could add this feature.

So yeah, I think this needs to change

Yess epic please take note we need this feature. I know for sure I’ll dive into local multiplayer coop game dev.

Pretty please??? :slight_smile:
This really need to be done or at least a solution be presented.

I hope big brother Epic is watching this increasing public demand.

I agree that it should be possible to switch at runtime which player can use which gamepad and thus allow a combination of keyboard and gamepad for two players. I can’t force my customers to get 2 gamepads for local splitscreen coop. They will probably thinking ill of me.

I among others would agree that this feature would be very beneficial to the development as sometimes you don’t have access to multiple gamepads when you want to test out local multiplayer functionality.

This thread answers a question that I had. I really would appreciate if this feature is added.

Is there a reason this hasn’t been done yet? It has been being asked as a feature for almost a year now in AnswerHub.

what a reason of this request, you cannot use keyboard and gamepad in same time because of some engine limitation?

I’m working on a university project in a group and we would like this option also for our small demonstration we are doing.

Our programmers are looking into it. If we find something I will update this.

Thanks!

I would like this feature as well. Customers want options when it comes to things like this.

guys, same question, again.
Something in the engine stop you from it?

I think the feature just isn’t there (user friendly version). On my end I checked answer hub, documentation and forums and had no luck. The only was apparently is to edit code or add code. I have 0 C++ knowledge. So having it in the engine via settings or something would be cool to have.

I posted a tutorial with various local multiplayer tips, and one of them is how to allow the keyboard for the 1st player and the controller for the 2nd player: https://wiki.unrealengine.com/Local_Multiplayer_Tips

Unfortunately, the only way to do the keyboard/controller split right now is via C++ code. It’s a bit hacky, but it works for now. I think my instructions are possible to follow with even just minimal C++ coding experience.

I do agree that it should be a default feature. The way I could see a “proper” implementation is:

  • If the game detects more players than gamepads, the keyboard/mouse is mapped to player 0, and the first controller is mapped to player 1, the second to player two, etc. This behavior could potentially be enabled or disabled by a checkbox, if someone really likes it the current way
  • If the game detects gamepads >= num players, then it’s the current behavior where the keyboard/mouse and the first controller is player 0, the second controller is player 1, etc.

Unfortunately, as far as I can tell the engine currently does not have a way of querying the number of gamepads connected, and each platform handles gamepad detection separately. So it would take a bit of work to get it working, though I don’t think it would be that hard. If I have time, I’ll take a shot at making this change and putting a pull request to get the feature added to the engine, but it’s going to be a little while before I can get to it.

Wow. I was bashing my head against the wall for 6+ hours over this, thinking it was me. Now this really irritates me, haha!

I would also love this feature! I would love to be able to use the keyboard for one player and a controller for a second player. Officially supported.

This really would be helpful. i can only assume this affects all local mp games at the moment.