Forum Discussion
Welby
11 years agoAdventurer
Best and Fastest way to implement the GamePad support
Hi! I was thinking about the best and fastest way to implement the Gamepad support in my game. It will be to add in the code also the lines to support the gamepad or there is a faster way to make i...
weasel47
11 years agoHeroic Explorer
You can configure axes and buttons in Edit -> Project Settings -> Input. If you set up multiple inputs with the same name (keyboard for one, gamepad for another), they will both be treated the same. You can then use, for example:
Input.GetButtonDown("Fire1");
This will detect any button that has been named "Fire1" in the settings.
Input.GetButtonDown("Fire1");
This will detect any button that has been named "Fire1" in the settings.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 6 days ago