Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit)

In windowed mode - Input.mousePosition is not limited by the screen bounds, so it is detecting when the cursor is outside of the window.

Mouse cursor honouring cursor movements outside of Windows application in Unity

Workflow

  • Open Starmaker Story 
  • Set it to Windowed mode in the Main Menu [Ensuring there is enough space between the application and the rest of the display]
  • Start a new game 
  • Get to a point where character image sprites are displayed
  • Move the the mouse cursor outside of the Windows Application 
  • [You will notice the images are moving when the cursor is being moved outside of the application]

Environment - Windows 11 24H2 - 2560x1440 - Starmaker Story 1.7 

Actually it is worse than that... it is also accepting keyboard inputs when the application is minimized. 

Workflow

  • Open Starmaker Story 
  • Set it to Windowed mode in the Main Menu [Ensuring there is enough space between the application and the rest of the display]
  • Start a new game 
  • Get to a point where there is conversation dialog
  • Minimize the Windows application (Starmaker) to Desktop
  • Press enter on the keyboard
  • [You will notice the conversation continues as if the Windows application is still in focus]