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