How can I force the mouse cursor to stay in the window of another game, when XCOM / XCOM 2 is running in the background?

How can I force the mouse cursor to stay in the window of another game, when XCOM / XCOM 2 is running in the background? - Gray Wooden Computer Cubicles Inside Room

The scenario is as follows:

I run XCOM or XCOM 2 (the problem occurs for both). I do a task change to Windows and start another game (i.e. leave XCOM running in the background), say Heroes of the Storm (HotS). Whenever I have an extended waiting period in the other game, I'd switch back to XCOM and continue there.

This worked perfectly for some games (e.g. Battle Worlds: Kronos) but when running XCOM this has some severe disadvantages. I'm playing on my main screen (right side) and have another secondary screen set up on the left side - just showing windows desktop.

The problem:

The mouse cursor doesn't stay in the HotS window. So whenever I hit the left side of my main screen and accidentally click, I'll switch to Windows. The mouse cursor isn't bound to the game's screen.

As said: this problem occurs specifically for XCOM / XCOM 2 and is not universal (although I can't say for sure it only happens for XCOM). Does anyone have a solution for this behavior? I want to keep running XCOM in the background while playing HotS and still keep focus only in HotS.






Pictures about "How can I force the mouse cursor to stay in the window of another game, when XCOM / XCOM 2 is running in the background?"

How can I force the mouse cursor to stay in the window of another game, when XCOM / XCOM 2 is running in the background? - Information Sign on Shelf
How can I force the mouse cursor to stay in the window of another game, when XCOM / XCOM 2 is running in the background? - Selective Focus Photography of Wireless Keyboard on Desk
How can I force the mouse cursor to stay in the window of another game, when XCOM / XCOM 2 is running in the background? - Modern computers with keyboards and mice placed in row on table with chairs  in contemporary workplace with orange walls



How do I lock my cursor to a game window?

Head to the notifications window, look for the app's icon, and then click it. Once the software is open, look for the cursor on the left and choose General. You will see multiple options on the right side. Find the option with the title \u201cLock Cursor onto the screen,\u201d and then select \u201cChange.\u201d

How do I get my cursor to show in games?

Just alt-tab out and in to the game to see whether the mouse cursos persists. Alt+enter, not alt tab. alt+enter, if it even has any function within a game, is usually for toggling between window and fullscreen mode.

How do I fix my mouse cursor in game?

heres how to change the resolution.
  • open the XComEngine.ini with notepad (Documents\\My Games\\XCOM2\\XComGame\\Config)
  • press ctrl+f search for "MaxAllowableResolutionX" change 0 to desired resolution. ...
  • do the same for "MaxAllowableResolutionY" again, mine would be MaxAllowableResolutionY=1440.
  • save the .




  • Xcom2 2K Launcher Fix tutorial 2021 - use the old launcher instead - Steam




    Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

    Images: Pixabay, Tranmautritam, Lukas, Josh Sorenson