Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 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 Gelidaer · May 06, 2015 at 12:46 PM · buttoncontrolleraxisxboxps3

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

I'm using the SCP driver to make the Dualshock 3 controller work as if it were a XBOX 360 controller and I can get all of the inputs properly (I'm going according to this: http://wiki.unity3d.com/index.php?title=Xbox360Controller) except for the R2 and L2 buttons. The two triggers are mapped to the 3rd axis (-1 to 1) but I want to be able to know when each button is being pressed separately. The Wiki says that the 9th & 10th axis should correspond to the triggers separately but I can't get it to work.

There were similar questions like this before but there wasn't any good answers. Does anyone know any fixes? Thanks!

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by ramXVI · Aug 01, 2016 at 02:21 PM

well.. it worked for me :o

in the input manager i set up an input named "R2" and i said 1.5 for the gravity 0.3 for the dead zone and 1.1 for the sensivity then "Joystick Axis" for the type and "10th Axis (Joystick)" for the Axis

and it works fine, i will change sensivity but it works in my script's Update() function i wrote "Debug.Log(R2);" and it works in the runtime i dont know what makes your input goes wrong but here is mine who is fine just in case it can resolves your problem :x

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 MHP666 · Jan 20 at 05:53 PM 0
Share

Could you please explain me how to configure the L2 and R2 buttons?

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Using an Xbox controller with GUI buttons 0 Answers

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

How To Add Button Images To GUIText? 1 Answer

How to know if finger is on joystick if it is at horizontal & vertical zero 0 Answers

Help!!! PS3/XBox Button Maps 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