Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by m4a44 · Nov 04, 2013 at 04:42 PM · controllermultiplegamepadcontrollers

Android multiple gamepad/controller/joystick support?

Does anyone know the best way to account for different gamepad support (beyond button mapping). Or would button mapping be the best way to deal with this scenario?

I wouldn't mind having 1 build that can work with connecting a random gamepad (like Green Throttle's) or maybe even on a microconsole (like Ouya. But I understand that probably won't happen without specific button mapping)...

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image TimBorquez · Nov 05, 2013 at 10:47 PM 0
Share

well id use either the input manager or every time i check inputs i use a million ors,

ex.

if(this.input || this.input || this.input)

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by tlalexander · Dec 05, 2013 at 08:05 AM

I looked into this myself recently (well, for gamepad libraries at all on android), and there's sadly no simple comprehensive library I could find.

The best thing I found was the open source Mupen64+AE Nintendo 64 emulator, which has excellent controller support. I hacked their code apart to use a gamepad for a robot, but I would really love to see someone break it out into a clean Android gamepad library. They patch together an existing library with their own work to support most good options for gamepads. I was told they have a great forum if I had any gamepad development questions, so you may want to check that out.

Oh, and the emulator has a free version with a nice joystick test mode in the settings, so you should be able to quickly see whether or not your desired joystick works.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image m4a44 · Dec 05, 2013 at 04:26 PM 0
Share

I guess I'll just use an input manager and hardcode the inputs of the different buttons and joysticks...

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

17 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Setting up inputs for multiple gamepads/controllers 1 Answer

PS4 controller right analog stick issue 3 Answers

Mapping multiple controllers 1 Answer

Adding motion controller to unity in 3D shooter 0 Answers

How do I standardize my game's input to different types of controllers? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges