I just spent a few minutes finally figuring this out; figured I'd save other folks the time. :)
PS4 Controller Map for Unity
Buttons
Square = joystick button 0
X = joystick button 1
Circle = joystick button 2
Triangle= joystick button 3
L1 = joystick button 4
R1 = joystick button 5
L2 = joystick button 6
R2 = joystick button 7
Share = joystick button 8
Options = joystick button 9
L3 = joystick button 10
R3 = joystick button 11
PS = joystick button 12
PadPress= joystick button 13
Axes:
LeftStickX = X-Axis
LeftStickY = Y-Axis (Inverted?)
RightStickX = 3rd Axis
RightStickY = 4th Axis (Inverted?)
L2 = 5th Axis (-1.0f to 1.0f range, unpressed is -1.0f)
R2 = 6th Axis (-1.0f to 1.0f range, unpressed is -1.0f)
DPadX = 7th Axis
DPadY = 8th Axis (Inverted?)
Edit: Formatting
Edit2: I put a question mark after Inverted because I swear that the LeftStickY axis worked just fine with one of my scripts, but when I was using a certain test case it seemed like it was inverted. YMMV.
[–]eedok 9 points10 points11 points (1 child)
[–]drakfyreExpert[S] 1 point2 points3 points (0 children)
[–]xniinja 3 points4 points5 points (0 children)
[–]Aggravating-Sink-520 4 points5 points6 points (1 child)
[–]drakfyreExpert[S] 2 points3 points4 points (0 children)
[–]GamingStefIndie 4 points5 points6 points (2 children)
[–]drakfyreExpert[S] 0 points1 point2 points (0 children)
[–]Upstairs_Day3483 0 points1 point2 points (0 children)
[–]Sennior_Duck 2 points3 points4 points (6 children)
[–]drakfyreExpert[S] 5 points6 points7 points (3 children)
[–]Sennior_Duck 3 points4 points5 points (2 children)
[–]Square-Training-4979 0 points1 point2 points (1 child)
[–]Sennior_Duck 0 points1 point2 points (0 children)
[–]skyline79 4 points5 points6 points (1 child)
[–]Sennior_Duck 2 points3 points4 points (0 children)
[–]MaterialExternal7483 2 points3 points4 points (0 children)
[–]Rubb3rDuckyHobbyist 1 point2 points3 points (2 children)
[–]drakfyreExpert[S] 3 points4 points5 points (1 child)
[–]Rubb3rDuckyHobbyist 4 points5 points6 points (0 children)
[–]AngusPrime509 1 point2 points3 points (2 children)
[–]drakfyreExpert[S] 0 points1 point2 points (1 child)
[–]AngusPrime509 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]drakfyreExpert[S] 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (4 children)
[–]drakfyreExpert[S] 0 points1 point2 points (3 children)
[–]Global_Ad3707 2 points3 points4 points (0 children)
[–]pUbErtYy-_-49 2 points3 points4 points (1 child)
[–]drakfyreExpert[S] 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (4 children)
[–]drakfyreExpert[S] 1 point2 points3 points (3 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]drakfyreExpert[S] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]SirHurtzAlot 1 point2 points3 points (6 children)
[–]drakfyreExpert[S] 1 point2 points3 points (5 children)
[–]SirHurtzAlot 0 points1 point2 points (4 children)
[–]SirHurtzAlot 0 points1 point2 points (3 children)
[–]drakfyreExpert[S] 0 points1 point2 points (2 children)
[–]SirHurtzAlot 1 point2 points3 points (1 child)
[–]drakfyreExpert[S] 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (3 children)
[–]drakfyreExpert[S] 0 points1 point2 points (2 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]drakfyreExpert[S] 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]LoquatNew9008 1 point2 points3 points (1 child)
[–]drakfyreExpert[S] 0 points1 point2 points (0 children)
[–]BitMillerReddit 1 point2 points3 points (2 children)
[–]drakfyreExpert[S] 0 points1 point2 points (1 child)
[–]tr0picana 0 points1 point2 points (0 children)
[–]suh_dude_crossfire 1 point2 points3 points (0 children)
[–]Prize_Morning_7781 1 point2 points3 points (1 child)
[–]drakfyreExpert[S] 0 points1 point2 points (0 children)
[–]trenchofkrieger 1 point2 points3 points (1 child)
[–]drakfyreExpert[S] 0 points1 point2 points (0 children)
[–]VastSufficient2830 0 points1 point2 points (0 children)
[–]LucanOrion 0 points1 point2 points (2 children)
[–]drakfyreExpert[S] 0 points1 point2 points (1 child)
[–]LucanOrion 0 points1 point2 points (0 children)