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 darshie1976 · Mar 11, 2014 at 08:49 AM · inputexternal controller

is there a tutorial to use usb controllers in Unity?

I am curious to learn how to control objects in Unity using an external controller.

Basically I would like a tutorial that tell me

1) what controls/codes is Unity expecting to get, when we use the Input class (does accept USB HID codes, like from a joystick or analog controller? Or keyboard stroke? )

2) How to take data from a controller, and transfer it to a game object, so I can manipulate its properties (transform and others, which will go in a script), trough an external controller.

I am experimenting with custom made controllers that are used by people with disabilities, and all that I was able to find is the input class.

Would be great to have some resources that show for example, how to take values from a potentiometer (like the joystick on a Xbox controller), or a button, that are attached on custom made usb controllers.

Thanks in advance.

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
0
Best Answer

Answer by fifthknotch · Mar 12, 2014 at 03:37 AM

I'm surprise no one has answered this yet. Here is a youtube video explaining how to get the joysticks to work on an xbox 360/pc controller, and here is another Unity Answers question someone asked which is similar to your question. Its answers are worth looking into.

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 darshie1976 · Mar 12, 2014 at 06:12 AM 0
Share

$$anonymous$$uch appreciated! So the whole thing is configured in the UI manager, not via code...that's why I was not able to find anything. I thought that was logic to look in the input class to find how to set up each axis. I see that basically the system is set with defaults (which means that the mouse will always be used for looking and so on), so you assign the controller axis to these functionality. I was trying ins$$anonymous$$d to set everything from scratch, which explain the total lack of info whatsoever. Thanks for the reply!!! The video was quick and clear! The topic is a bit confusing, but there is a link to the unify community where there is a good article about the controller. I assume that is the same author of the video, since the controller image is the same. Thanks!!!

avatar image fifthknotch · Mar 12, 2014 at 06:14 AM 0
Share

No problem! Don't forget to mark my answer please.

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

21 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 avatar image avatar image avatar image avatar image

Related Questions

InputManager doesn't detect gamepad numbers correctly 1 Answer

Help In Making a SphereCast for 3D Tire! Working RayCast Script included! 0 Answers

how to move an object in 4 directions by tilting device when not parallel to the ground 0 Answers

iphone input 1 Answer

How to register more than 5 simultaneous key presses? New Input System 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