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 Nercoe · Oct 27, 2013 at 04:09 PM · buttoncontrollerxbox

XBox Controller Button Pressure?

Hi guys, just need to find this out quickly as I cannot find any information whatsoever on this subject.

Is it possible for me to determine how hard a player presses the "Y" button for example. To expand on this point, say I had a racing game and when I pressed the "Y" button, the car accelerated. Dependent on how hard I pressed the button determines how fast the car accelerates.

Is it possible to do this? I have used something similar for analogue controllers in the past but cannot find any documentation on other input methods. Any guidance/help is much appreciated.

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 screenname_taken · Mar 04, 2014 at 12:10 PM 0
Share

I'd love to know that as well. Though for a car i'd prefer the triggers, you know to emulate the left and right pedals ins$$anonymous$$d of my thumbs doing the work. But yeah, i remember Gran Turismo 4 on the PS2 doing that with the face buttons.

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by Binary42 · Mar 04, 2014 at 01:12 PM

The Y, X, A, B and Bumper Buttons are digital so you won't be able to detect how hard they're pressed. You can get analog input for the sticks and the triggers (RT & LT) though.

Comment
Add comment · Show 3 · 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 screenname_taken · Mar 04, 2014 at 01:17 PM 0
Share

Seriously?! The original XBox had pressure sensitive face buttons, and they removed it for 360? :/

avatar image ArchyInf · Mar 04, 2014 at 01:45 PM 0
Share

Yes, the PS3 controller still has them, the PS4 not. A rarely used feature. I guess one of the reasons for removing them was that making a button that has a good haptic feedback is nearly impossible when it needs to be pressure sensitive too. There are very few games that did use this feature.

avatar image Max_Bol · Aug 12, 2015 at 08:22 PM 0
Share

Actually, physically the XBox 360 controllers also have pressure based exposed values, but there are 2 issues co$$anonymous$$g from the hardware : - Some official models have a reverse pressure feature (clipping) as it allow faster "release time" of the button. It make it extremely hard to allow the button to be slightly pressed between the 0.01 and 0.5 values (out of 1 being fully pressed). - For some reason, the Windows native plugin for the 360 controller (of course distributed by Windows used within Unity) only recognize raw data of the button (meaning 0 and 1). This is why Unity recognize it only as booleans values.

In the Xbox 360, there are games that make uses of the button pressure, but as I previously mentioned, due to the "clipping" feature of the buttons, it's much more problematic so it's really not a popular features even when available.

This have made many XBox 360 ported game on PC with button-pression issues. So, for now, it's not natively possible to have button pressure in Unity. It would require an update of the Xbox 360 controller plugin + an update of the Unity's input recognition. (Then imagine how many game projects out there that have been made with buttons being booleans that would have their inputs updated. It would be an hell).

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

18 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

Related Questions

How To Add Button Images To GUIText? 1 Answer

How to have multiple types of controller input using the input manager 0 Answers

How to get input of PS3 controller's R2 or L2 buttons? 1 Answer

Using an Xbox controller with GUI buttons 0 Answers

Controlling GUI with Xbox 360 Controller 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