• 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
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

People who like this

0 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

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

People who like this

0 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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

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

Xbox 360 gamepad numbers mixed up 0 Answers

Input Manager settings not working with XBox One controller 1 Answer

How to check if mac OS's natural scrolling is on or off? 0 Answers

Unity Input For Xbox Controller, Triggers Swap Controllers 1 Answer

strange Xbox Controller problem 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