
This Game Object script will allow you to move the Windows mouse cursor by moving the analog sticks on your joystick.WINDOWS ONLY! Configured for Input Manager, but can be used with Input System with minor tweaks. Works with all pipelines as it does not touch the rendering system at all. However, the included demo scene is configured for URP.Add this script to your root UI object (be it the main menu, or an in-game menu) and any UI instantly has joystick support sufficient for passing the Steam Build review; and as a bonus it's actually pretty pleasant to use; you'll quickly find yourself no longer reaching for the mouse to operate your menus. It would be suitable for a 2D or 3D platformer or even a sandbox game like Minecraft; but if your game is intended to be used almost entirely by mouse (eg Starcraft) even a very good mouse emulator like this will get old.Windows only; the code moves the actual Windows Mouse Cursor, and depends on the Windows API to do so. Steam Deck implements the appropriate APIs, and is supported too, but pure Linux and macos do not.For most use cases the script is drag and drop; add it to your UI's canvas game object and change 3 properties of your Event Manager's Standalone Input Module, and you have full mouse control via your joystick. No source code modification required. For special cases the documentation explains the additional configuration steps required complete with copious screen shots. The source code is fully documented if you want to tweak how it works, acceleration curves, etc.