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
1
Question by MCoburn · May 11, 2015 at 08:30 AM · androidinputbluetoothcontrollers

Unity3D and Android Controller Support

I ordered a Evolution Drone controller, which is an Android game controller that can be a traditional controller or emulate a keyboard and mouse. I was wondering if Unity3D 4.6 and 5.x support Joysticks on Android devices. I am aware that Mobile Input allows me to set up joysticks on the touchscreen.

The reason I ask is because I have a embedded Android development board (ODROID) with a BlueTooth adapter attached to it. I would be pairing the controller to that device. Other devices like the JXD 7000B have joysticks built in and that device is like a Playstation Portable with Android KitKat, a 7" screen, 2 Button Pads, and 2 joysticks.

Will Unity see the controller and be able to communicate to it via BlueTooth, allowing me to call the Input.GetAxis to get the joypad axis natively? Or does Unity only support touch screen input on mobile devices out of the box and this requires a third party solution?

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by Yury-Habets · May 11, 2015 at 10:08 AM

Joysticks should work fine, both USB and Bluetooth (For example, it does work with Android TV out of the box).

"Allow Activation on Mobile Devices" option in the UI input system allows you to navigate UI controls without even having to call Input.GetAxis(). To implement actual game input, you should call Input.GetAxis().

Feel free to get back if you have any issues, or submit a bug report if you think something is not working as expected.

Comment
Add comment · Show 2 · 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 MCoburn · May 11, 2015 at 10:55 PM 0
Share

Thank you for the info. I will test out the controller when it arrives with my Android device and let you know if it performs as expected.

avatar image Bichetordue · Sep 30, 2017 at 07:39 PM 0
Share

would it also work with a dualshock 4?

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity android bluetooth controller disconnect doesn't make array empty 1 Answer

Force MouseButtonUp on Android 0 Answers

I Trying to Make a Game for my OUYA 0 Answers

Using "Custom Bluetooth HID Device" on Android Unity Application. 0 Answers

Anyway to fix a Bluetooth controller that is temporarily unresponsive on my GearVR game? 0 Answers


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