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 Clavat · Mar 18, 2014 at 06:50 PM · c#inputgamepadwii

How do I get input from the WiiU Gamepad

Hello everybody

i'm new here. So I got a Wiiu here and its all working fine with the game loading on it and starting and so on, but I got a little bit of a problem when it comes down to the gamepad controlls.

It just wont work no matter what I do.

I dont get any Input from this.

I was able to switch the analog sticks for the movement in the InputManager and with Input.getButton("Fire1") it seems that "joystick button 0" is the touchscreen, but the other Options "joystick button 1 - 19" have no effect.

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

3 Replies

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

Answer by Blaveloper · Apr 02, 2014 at 07:45 AM

Before I answer your question, may I ask you something? Why do you put stuff in public view that's covered under NDA? All Wii U-related stuff is part of the NDA, which is why the public editor doesn't show it. It's safer to put this kind of questions on the newsgroups next time, you'll save yourself from getting your license revoked with this.

More generally spoken, FixedUpdate() is meant to be used for physics purposes only, pressing buttons on a controller, keyboard, joystick or mouse is not an in-game physic. I used to make this mistake in the past too, which caused a lot of trouble with input. So instead of that, put all your controls in Update(), this will fix it automatically.

One other tip:

I see you're using a string value for debug purposes. It's much easier to use Debug.Log("SOMETHING"); instead. It's less typing and it will also work when running it on the dev kit. Where? You will find it out quick (and I won't say it in public).

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 Clavat · Apr 02, 2014 at 01:41 PM 0
Share

Thanks for your advice, explanation and tip.

$$anonymous$$ay I ask where I can find the Newsgroup?

avatar image Clavat · Apr 02, 2014 at 02:29 PM 0
Share

Never$$anonymous$$d, I found it.

avatar image
0

Answer by Clavat · Mar 19, 2014 at 03:25 PM

Ok i managed to solve this problem by creating the "myDrc"-Variable in one of the Update Methods.

Can somebody explain to my why the Wii U Gamepad needs to be assigned to that variable every frame?

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

Answer by War Scorpion · Mar 27, 2014 at 02:47 AM

Hi, could you post new code for this script? I also want to know why.

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

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

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

Related Questions

Multiple Cars not working 1 Answer

Distribute terrain in zones 3 Answers

Rotation of a object depending on where the joystick is facing 1 Answer

Initialising List array for use in a custom Editor 1 Answer

Using Input.mouseposition to instantiate 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