Joystick Mouse Emulator (for UIs) View on Asset Store (opens in new tab)

Package details

Latest version
1.2
Last updated
First released
Unity version
2022.3.33 or later
Package size
170 KB
Files
3
Favorites
3
Views in the past week
11

Price tracking

Last checked
Tracked since
Lowest recorded
$4.99 on

Keywords

Joystick Mouse Emulator (for UIs)

by Alan Robinson (opens in new tab)

No ratings yet

This Game Object script will allow you to move the Windows mouse cursor by moving the analog sticks on your joystick.

Price $4.99

Buy on Asset Store (opens in new tab)

Affiliate link · Purchases support this site

Price history

Last 6 months

USD
Price history for Joystick Mouse Emulator (for UIs), 6 months Current $4.99; lowest $4.99; highest $4.99 in this period. $0 $2.5 $5 Jun Jul Aug Sep Oct Nov

About this asset

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.

From the publisher's Asset Store listing.

Technical details

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. 

Compatibility

Render pipelines supported in each Unity version
Unity version Built-in URP HDRP
2022.3.33f1 Compatible Compatible Compatible

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.

As listed on the Asset Store.