Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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
3
Question by Fallout267 · Apr 23, 2020 at 05:50 PM · inputcontrollerstick

Unity input system can't select stick

I'm trying to use unity's input system to use a PS4 controller with my game. When I go to select the left stick for the movement controls I press listen and move the stick, but only the specific left, right, up, down options appear not the option of selecting just the stick. Also when I search for it with the drop-down menu both the sticks and the d-pad are greyed out only letting me select the individual directions. Any reason why this is happening?

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

3 Replies

· Add your reply
  • Sort: 
avatar image
15

Answer by fleity · Jun 22, 2020 at 04:11 PM

just stumbled over the same issue, the reason why you can't select "leftstick / rightstick" is that the Move Action (green icon) needs to be set to Action Type: Pass Through and Control Type: Vector2. Plus there is a difference between clicking the plus icon and right clicking the Bar of your action.

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 kobyfr · Jan 16, 2021 at 10:33 AM 0
Share

thanks, saved me.

avatar image
3

Answer by Reykos · Apr 29, 2020 at 04:41 AM

Hi @Fallout267. First time posting here, so excuse me if the formatting is not correct.

I've been experiencing the same problem as you do though in my case is with an xBox controller. I've solved it by going into the "Bindings/Paths" and instead of selecting the dropdown I clicked the "T" button. Once clicked I changed the string from "/leftStick/up" to "/leftStick" and it worked fine.

Here is a sample of the code I use to get the values in case you have trouble with it. I have the input actions inside the controls class and, in my case, the action Move is the one associated with the Left stick

 controls.Gameplay.Move.performed += (ctx) => {v = ctx.ReadValue<Vector2>();}

Attaching a snapshot. I hope it helps you.

alt text

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 bwwebs · May 30, 2020 at 05:53 AM 0
Share

Awesome, that helps out big time!

avatar image
3

Answer by ps2goat · May 13, 2020 at 05:23 AM

I swear when I first started with the Input Actions asset, the first action allowed me to select the sticks, but I was unable to get the Add 2D Vector Composite option to show. I got the latter one to show by clicking out of the action name and then right-clicking on it again.

I still have to test if this will work, but I was able to get the binding by:

  1. Make a new action

  2. In this action, set the Action Type to 'Value' and the Control Type to 'Stick'

  3. Now click the plus (+) for this action and choose 'Add Binding'

  4. You should be able to select a stick, now.

  5. When done, you can drag the binding from the new action to your movement action (if you previously defined keyboard bindings, etc.). Just be careful to not drag it into the middle of child bindings if you have a composite binding (2D vector for movement, for example).

Using the answer from Reykos, I clicked the 'T' in the binding path of my new action (created in step 4, not yet moved). My binding path said <Gamepad>/leftStick

(Now that I typed that, I see the screenshot in the answer does have the <Gamepad> part of the binding)

I'm in the most current stable version of 2019.3.13f1, and this UI definitely seems buggy and needs some work.

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 ps2goat · May 13, 2020 at 05:24 AM 0
Share

@Reykos has the best answer for workflow, but I wanted to share how I was able to make a binding and get that path, in case others had the same issue with other devices.

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

161 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

Related Questions

Unity Input System Package Stick/Axis Deadzone if set as a processor not working 0 Answers

How to link mouse click to controller button? (webvr scripting)//unity 0 Answers

Right gamepad stick not working with Input System? 1 Answer

OpenXR Continuous Turn and Movement not working 0 Answers

Virtual joystick in the new input system 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