x

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"

Running two instances on the same machine share XInput

This is a new problem with 4.9 preview.

Launch two or more instances. For example launch a dedicated server and then connect two clients to it, all on the same machine. Set one client window (1) to the foreground/focus window. Note that the other client window (2), also receives XInput (Input from the 360 controller). Switch foreground/focus window to (2) and note that the first window (1) continues to receive XInput.

It stops receiving dual input in our game if we activate and close the inventory screen, possibly because input focus changes or because we call Set Input Mode blueprint node.

Product Version: UE 4.9 Preview
Tags:
more ▼

asked Aug 10 '15 at 08:26 AM in Bug Reports

avatar image

Markus Arvidsson
95 3 6 11

avatar image AndrewHurley Aug 10 '15 at 07:19 PM

Hey Markus Arvidsson,

Would you providing me with some reproducible steps, and some screenshots or your blueprints so I can reproduce what you are reporting on my end?

Thank you,

Andrew Hurley

avatar image Markus Arvidsson Aug 11 '15 at 01:26 AM

Hey, I tried this on preview 2 with the first person template c++ project. It happens there, too. You just need to launch that project with the -game parameter twice. So two instances of standalone game. Note how the controller controls both instances and not just the one that has focus. So no need to do a client/server setup.

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

1 answer: sort voted first

Hello Markus Arvidsson,

This is a bug that is currently being addressed by our development team.

The ticket number is UE - 18946.

Thank you very much for reporting this bug,

Logan

more ▼

answered Aug 11 '15 at 06:34 PM

avatar image Markus Arvidsson Aug 11 '15 at 07:16 PM

Great, would be awesome if it could be addressed before 4.9 is released :).

avatar image Markus Arvidsson Sep 30 '15 at 06:45 PM

This still happens in the 4.10 branch.

avatar image Logan Bailey ♦♦ STAFF Oct 01 '15 at 04:48 PM

Hey Markus,

Thanks for the update. This is marked as To Do and Unresolved. Our developers are doing all that they can do resolve all of the issues that they receive. However, as there is a massive amount of them it's hard to give anyone a time frame for when and if they will be resolved.

The bright side is it is marked as "To Do" instead of "Backlogged" or "Won't Fix"

Again, Thank you for the update,

Logan

avatar image PhantomKeyLtd Feb 05 '19 at 03:53 PM

Hello,

I'm still experiencing this bug in 4.21.1-release. I've tried searching for the support ticket mentioned above (UE-18946), but can't find it on UDN or https://issues.unrealengine.com/.

The issue can be reproduced by launching the example third-person project (C++) in at least one standalone (non-PIE) window:

 UE4Editor.exe <PROJECT_PATH> -game -log -Windowed -ResX=750 -ResY=500
 

If you switch focus to any other program (e.g. Notepad) and use a gamepad (e.g. Wired Xbox 360 controller), the character will still move. Launching multiple standalone windows will mean that the controller moves all characters simultaneously, regardless of window focus.

The same behaviour can be observed with a multi-window listen server and client setup:

 UE4Editor.exe <PROJECT_PATH> ?listen -game -log -Windowed -ResX=750 -ResY=500
 UE4Editor.exe <PROJECT_PATH> 127.0.0.1 -game -log -Windowed -ResX=750 -ResY=500
 UE4Editor.exe <PROJECT_PATH> 127.0.0.1 -game -log -Windowed -ResX=750 -ResY=500

It also occurs in the case of a dedicated server with one or more clients:

 UE4Editor.exe <PROJECT_PATH> -server -game -log
 UE4Editor.exe <PROJECT_PATH> 127.0.0.1 -game -log -Windowed -ResX=750 -ResY=500
 UE4Editor.exe <PROJECT_PATH> 127.0.0.1 -game -log -Windowed -ResX=750 -ResY=500

I've dug into the engine code in Visual Studio, and it looks like FSlateApplication::SetUserFocus() is being triggered appropriately when I switch back to the window. However, I can also see that FSlateApplication::OnControllerAnalog() is being called when I move the analogue sticks, regardless of window focus.

Is there a fix for this issue? If not, any advice on a workaround would be very helpful.

Thanks,

Mat

avatar image Markus Arvidsson Feb 05 '19 at 04:15 PM

I can confirm it still happens for us too in 4.21.

(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