Hi !
I am launching the Unreal Engine process two different ways, depending on if I am in development or release. In development, I am launching the Unreal Editor using command line arguments to specify the game and level to run. In release, I am packaging it and running the release executible. In this particular example, I am using the UE editor launching method.
So basically in code in a separate Windows application, I am launching Unreal Engine in code, then grabbing its window and sticking it inside a control in my window. The image below shows this working, and the red rectangle is the only area where the mouse is responsive. This view also shows where I am continuously printing the mouse X/Y position from the player controller, and when I took this snapshot the mouse was at the top-left corner of the red rectangle, so it should be printing around (0, 0), however it is printing (186,207) because it apparently thinks that its local window position is the global screen position.
In this “MainWindow”, the window consists of a simple grid with two columns, the column in the right being 4x wider than the column on the left, and I am sticking the UE window inside the column on the right. As you can see everything works, I just get wonky mouse coordinates.