Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

With a little help from my coder friends

A topic by Stefano Galligani created Aug 03, 2019 Views: 248 Replies: 1
Viewing posts 1 to 3
Submitted (1 edit)

I just want to add controller support to my game, but i don't know if in Unity, Input.AnyKeyDown is valid for controllers too or only for keyboard. In the latter case, how can i check if any button was pressed from keyboard or controller? Thanks in advance

EDIT: I tried it with the Steam controller as a non-Steam game added on Steam, and it looks like it works. Just to be sure i'm gonna use bothAnyKeyDown and ButtonDown

Submitted

Looks like it, at least for a 360 pad.