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
0
Question by Random username · Apr 08, 2013 at 02:17 PM · inputmacxbox controller

Mac xbox controller detect trigger input

Hey, I've set up my xbox controller to work with my mac using the tattie bogle driver and I'm using this page as a reference for the input: http://wiki.unity3d.com/index.php?title=Xbox360Controller (scroll down to bottom for mac version) The only thing that I can't get to work is the triggers. Heres a picture of my input for running: what do I need to do to get it to recognise the left trigger?

[1]: /storage/temp/9855-screen+shot+2013-04-08+at+4.08.36+pm.png

screen shot 2013-04-08 at 4.08.36 pm.png (19.7 kB)
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 iwaldrop · Apr 08, 2013 at 05:25 PM 0
Share

If you mean the triggers, and not the bumpers, then you probably need to monitor axes since they're variable throw inputs.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Chrisjan89 · Oct 04, 2013 at 03:40 PM

What you need to do for getting the triggers to work is treating them like the analog sticks. You need to change the value for "Type" to "Joystick Axis".

From here I was a little stuck, since I didn't get any values from it. That was because I listened for input if it was a button. Instead treat it like an axis as one should. You can check the output ranges with this code. They go from -1 to 1.

 print (Input.GetAxis("Run"));
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 slog · Jun 04, 2014 at 05:42 AM 0
Share

Im having an odd problem with my trigger range. Yes it goes from -1 to 1, but only once its been pressed. Before the trigger has been touched it sits on 0 (when I think it should be at -1 by default...). Have you experienced this in the past too? what was your workaround?

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

13 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

Related Questions

How do I fix the input delay on Unity for Mac? 0 Answers

Input.inputString is never set on Mac in a browser 1 Answer

4 xbox controllers 0 Answers

Input.GetJoystickNames gives incorrect index with multiple controllers 1 Answer

Xbox One/360 Controller trigger input drops out Mac OSX 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