Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 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 aVolnov · Apr 07, 2020 at 12:08 PM · iosbugbug reportxboxcontrollerxbox controller

Xbox One controller on iOS spams GetKeyUp and GetKeyDown every frame while a button is pressed

The issue is similar to https://issuetracker.unity3d.com/is...own-any-key-on-wireless-tv-remote-or-keyboard but it's happening on iOS ever since they added support for additional buttons for controllers on iOS in 2019.2.18. I filed a bug report months ago (1218784 on FogBugz) and the person responding only had a PS4 controller to test on and couldn't repro with that.

Here's the report I filed:

What happened:

Xbox One S Bluetooth controller on iOS spams GetKeyUp and GetKeyDown every frame while a button is pressed, making it unusable. This started happening after update 2019.2.18f1, only on iOS. Android is working as intended. Custom Input names stopped working as well via OnButtonDown (also iOS only), and inputs don't work at all without specifying the joystick number.

How we can reproduce it using the example you attached Build the attached project for iOS, run it on a device with an Xbox controller connected via Bluetooth, launch the app via Xcode, observe the console as you press keys on the controller.

Expected behavior:

  1. OnKeyUp and OnKeyDown are only called on the frame where those actions happen

  2. OnButtonDown should let you call custom named input axes/buttons

  3. KeyCode.JoystickButton14 is called together with KeyCode.Joystick1Button14 if the controller A button is pressed.

These would be reflected in the console, as can be seen in the attached script.

What actually happens on iOS:

  1. OnKeyUp and OnKeyDown are called every frame while the key is held down

  2. OnButtonDown is not called at all

  3. Only KeyCode.Joystick1Button14 is called, not KeyCode.JoystickButton14

All three of these issues can be seen in the attached project’s script console output in Xcode while running on device.

Link to repro project: https://mega.nz/file/Eo0FlDab#SCGOca-ZVQjO9xxjmKzXd89yd9VskTGnHn6P7TUIjQ0

This is still happening to me as of 2019.3.7. Anyone else have this bug?

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

0 Replies

· Add your reply
  • Sort: 

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

174 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

Related Questions

Unable to create ios build 0 Answers

Can't build for iOS 0 Answers

Editing Skinned Cloth Verticies is faulty 0 Answers

Windows toolbar showing in fullscreen mode 1 Answer

Script only works if i enable/disable it in inspector 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