• 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 MagicAirplane · May 23, 2017 at 06:27 AM · controllerjoystickgamepadcontrollersjoysticks

PS4 controller right analog stick issue

I'm using the cross platform input library to include gamepad support in my game. I have it so the right analog stick moves the camera, and this works perfectly fine with wired Xbox 360 controllers. But with PS4 controllers, the camera won't stop spinning. I've tried increasing the dead zone, but that just makes it spin more slowly. I don't seem to have any control over the camera with a PS4 controller.

Has anyone else encountered an issue like this? What could be going on?

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
5

Answer by nikhilw · Dec 01, 2017 at 02:10 PM

Hi @MagicAirplane , don't know if this will help or not, but I had an issue on a 2D game with the right thumbstick - I set up the input horizontal axes with 3rd and 4th Joysticks on the controller as I saw online, but the Y axis seemed to always be at 1 (the player always went upwards - may be the same as your camera spin). I tried all the axes and found that while the 3rd Joystick mapped to the Right Thumbstick X axis, the 6th Joystick mapped to the Right Thumbstick Y axis - it turned out the 4th and 5th Joystick are the left and right triggers.Hope that helps,

Comment
Add comment · Show 2 · 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 IcyIke · Apr 23, 2019 at 08:42 AM 0
Share

I logged in to specifically say to you thank you. I was spinning on this and it didn't work but this totally worked. If you are using a Ps4 Controller (no DS4 or anything like that, just usb to the computer), then you have to put Y Axis on the right Joystick to 6th axis. Thank you so much dude.

avatar image tbriz · Dec 01, 2019 at 05:36 PM 0
Share

There is a reddit post at the top of Google search results that I used and gave me the same issue as you... I found your post is correct as far as the 3rd and 6th axis goes, thank you. Just want to suggest edit "it turned out the 4th and 5th Joystick are the left and right triggers" change to "it turned out the 4th and 5th Joystick BUTTONS are the left and right triggers" as opposed to the 4th and 5th joystick axis. Thank you.

avatar image
0

Answer by BCrisos · Jul 25, 2017 at 03:57 AM

It's unfortunate the same thing happens to me. I've been looking for an answer online and haven't found any. :/

Comment
Add comment · 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
0

Answer by RakutenMarketingUnreal · Mar 09, 2018 at 04:17 AM

all great help but what would be amazing if some one has a ps4 controller and a xbox input manager preset!

Comment
Add comment · 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

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

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

8 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Setting up inputs for multiple gamepads/controllers 1 Answer

How many usb joysticks can i connect to a pc? 0 Answers

Android multiple gamepad/controller/joystick support? 1 Answer

Mapping multiple controllers 1 Answer

The name 'Joystick' does not denote a valid type ('not found') 2 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges