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...
Welby
11 years agoAdventurer
"weasel47" wrote:
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.
This is really useful to know. Maybe more useful if i know it some time ago,now i've to change the keys as you have said in every scripts :lol:
However that's really interesting,i'm going to try it now! Thanks both of you :)
Edit: Your solution works perfectly,thanks! :)
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