Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

PowerQuest

A Nifty 2D Adventure Toolkit for Unity · By Powerhoof

Easiest way to add controller support to current mouse support scheme.

A topic by Grahf created Jun 06, 2020 Views: 170 Replies: 2
Viewing posts 1 to 2

I want to create an Nvidia Shield/Android version of my game which uses any usb controller.  What plugin or procedure do you recommend for converting the controls across.  Is it a simple process or quite difficult?

Easiest would be to use Cursor.SetPosisionOverride() in your global script Update to move the cursor based on controller input, then E.ProcessClick() when a button is pressed on the controller. That might give you enough to get started. 

For controller input hamdling there's a couple of good assets, rewired is most popular and easy to use I believe. Unity's built in stuff is pants.

Cheers - I'll check out Rewired and the advice you gave.  Doesn't seem to difficult.