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 Gary · Jul 01, 2010 at 02:04 AM · inputdevice

New input device

Hi all, I am interested in using input devices other than the mouse and keyboard. I would like to use an RC controller in-game, like the kind you get with an RC car or plane or boat. Anyone know how to do this, or where to begin?

I have an esky usb controller: http://www.amazon.com/Flight-Simulator-Training-Airplanes-Helicopters/dp/7293000014/ref=sr_1_1?ie=UTF8&s=toys-and-games&qid=1277949630&sr=8-1 It has a usb connection to the computer and is used by some flight sim softwares so I know the hardware works, question is how to make it work with unity.

If you have any experience doing something similar please advise. Thank you. Gary

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

2 Replies

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

Answer by AnaRhisT · Jul 01, 2010 at 02:09 AM

Yeah.. Joystick buttons. General explanation about it Edit->Project Settings->Input. class-InputManager Use KeyCode's for Joystick : KeyCode

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 Gary · Jul 02, 2010 at 02:00 AM 0
Share

thanks, will try that anarhist

avatar image AnaRhisT · Jul 02, 2010 at 11:52 AM 0
Share

tick it so it'll be 'approved' as an answer.

avatar image
3
Best Answer

Answer by Noise crime · Jul 01, 2010 at 05:06 AM

As the original answer says, you can most likely treat it as a joystick in Unity as a quick search revealed it to be used in games/simulators as a replacement for standard controllers. If it is treated as a standard USB joystick, you just need to determine the mapping, this page may be useful for that.

If that doesn't work ( though i'd be very surpised if it doesn't) you'd need to find information on drivers it uses and preferably a dll to talk directly to it via USB. Though that is probably unlikely to happen unless the manufacture has released it to the public.

A final option, though a bit pointless with this controler since it comes with usb is to go the direct electronic route, that is cracking open a controller and directly soldering wires to the circuit board, linking them to a USB controller circuit board, then using a dll /plugin to interface with Unity. I've done that in the past with Director based on this tutorial and proved to be great fun. I used MiniBee in this case, but Arduino is also popular and I'm sure I remember reading that someone had a plugin or some other support for it in Unity.

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 Gary · Jul 02, 2010 at 01:59 AM 0
Share

Thanks noisecrime, will try treating it as a joystick

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

No one has followed this question yet.

Related Questions

What devices are supported in Unity 1 Answer

unity device simulator use WASD to control 0 Answers

Can't get multiple microphone channels 3 Answers

How to tell if the device is android or ios 3 Answers

new input device 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