- Home /
Can't read dpad inputs on controller?
I'm trying to read the dpad inputs from my PS4 controller, but despite using getaxis, I never get a non-zero value. My code is
Debug.Log("H: " + Input.GetAxisRaw("Horizontal"));
My input manager is set up so Horizontal's type => Joystick Axis, Axis => X Axis, and Joy Num => Get Motion from all Joysticks. But I can only get non-zero values returned when moving the left thumb stick. The right thumb stick doesn't give any results either. I've tried some alternate axis like 3rd, 4th, 5th, etc too but those didn't work either.
So how can I get dpad input?
So I guess I didn't go far enough down the line of the 20+ alternate axis. The 7th axis is for left/right dpad and the 8th is for up/down.
Answer by sselke42 · Aug 22, 2019 at 01:54 AM
Idk if this will work or not, but try looking at this video: https://www.youtube.com/watch?v=p-3S73MaDP8 It also depends on your version of Unity, because I know this is in one of the new updates @homer_3
Your answer
Follow this Question
Related Questions
Is there a way to modify Input Manager so that an ax is be able simulate an input from code? 0 Answers
Mapping multiple controllers 1 Answer
How many inputs in Unity's Input Manager is considered bad? 0 Answers
How set vive controller with input manager? 0 Answers
Help needed! My Prefab won't spawn if it has input actions :( 1 Answer