Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
  • Help Room /
avatar image
0
Question by Map-Builder · Jul 27, 2017 at 10:50 PM · androidcontrollerevent

[8bitdo zero controller] Get D-PAD Events (Android)

Hi,

I recently got an 8bitdo zero and found that Event.current.keyCode.ToString() gives the following values :

     // 8bitdo zero controls
     // Keycodes :
     // JoystickButton0 = A
     // JoystickButton1 = B
     // JoystickButton2 = X
     // JoystickButton3 = Y
     // LeftShift = L
     // RightShift = R
     // Return = Start (middle right button)
     // Pause = Menu (middle left button)

(added because it may help some other)

But I cannot find a way to get the DPad events. It does work because it allows me to control my phone (navigating in menus) but no event seems to show. (note : GetAxis("Horizontal") and vertical gives nothing)

Does anyone has a solution ?

Thanks in advance

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 goldfisho · Aug 10, 2017 at 02:20 AM 0
Share

Hey the inputs seem different now from what you posted. (this is for the NES30 Pro) I now notice you were talking about the 'zero'. Regardless I'll leave this here in case it helps someone.

 // 8bitdo zero controls
 // $$anonymous$$eycodes :
 // JoystickButton0 = A
 // JoystickButton1 = B
 // JoystickButton3 = X
 // JoystickButton4 = Y
 
 // JoystickButton6 = L1
 // JoystickButton7 = R1
 // JoystickButton8 = L2
 // JoystickButton9 = R2
 
 // JoystickButton10 = Select
 // JoystickButton11 = Start
 
 // JoystickButton13 = LS
 // JoystickButton14 = RS



3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Map-Builder · Jul 29, 2017 at 09:02 AM

It may be a standard problem with controllers on android :

http://answers.unity3d.com/questions/1246569/steelseries-nimbus-gamepad-d-pad-not-recognized.html

but the dev of "rewired" plugin for unity seemed to be able to implement the 8bitdo zero support in its plugin. If any one of you got an idea. Please tell me. Thanks

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 Map-Builder · Jul 29, 2017 at 09:01 PM 0
Share

So I used Input.GetJoystickNames() and it seems that it is well recognized but didn't work with GetAxis("Horizontal") and vertical but I don't know how but I probably did press by error D-Pad and A and it worked. It seems that joystick simulation is made that way.

Currently still looking for a solution.

avatar image sumit47 · May 21, 2018 at 04:25 PM 0
Share

Hi, Thanks for your response first. I have solved my issue by adding Input.GetButton("Fire1") in GVRBasePointer script's method:-

public virtual bool TriggerDown { get { bool isTriggerDown = Input.Get$$anonymous$$ouseButtonDown(0) || Input.GetButton("Fire1"); return isTriggerDown || GvrControllerInput.ClickButtonDown; } }

avatar image
0

Answer by cenker · Nov 23, 2017 at 07:34 PM

same shit all button works i 8bitdo zero but not dpad

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 sumit47 · May 21, 2018 at 04:27 PM 0
Share

i have solved ! please look into above comment .

avatar image
0

Answer by sumit47 · Mar 30, 2018 at 02:55 PM

i am facing a little bit different issue, in my case dpad is working but i am unable to make a click event. Any solution ?

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 Map-Builder · Mar 31, 2018 at 09:32 PM 0
Share

what do you mean exactly ?

Input.GetButtonDown("NameOfTheEvent") ?

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

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

Related Questions

Unity Android Controlls with CrossPlatformInput 1 Answer

Android Hourly Events 1 Answer

3d bird controller 0 Answers

controller bluethoot andorid 1 Answer

Using a Phone as a Remote Control and Cross Platform Input 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