Editing DS4-USB

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 234: Line 234:


=== HID Report Descriptor ===
=== HID Report Descriptor ===
[https://www.usb.org/sites/default/files/documents/hut1_12v2.pdf#page=26 HID Usage Tables 1.12 (p.26)]
[http://www.usb.org/developers/devclass_docs/Hut1_12v2.pdf HID Usage Tables 1.12 (p.26)]


{| class="wikitable sortable"
{| class="wikitable sortable"
Line 774: Line 774:
|-
|-
|[1]
|[1]
|colspan="8"|{{padl}} Left stick axis X (0: {{padll}} left)
|colspan="8"|{{padl}} X axis (0 = {{padll}} left)
|-
|-
|[2]
|[2]
|colspan="8"|{{padl}} Left Stick axis Y (0: {{padlu}} up)
|colspan="8"|{{padl}} Y axis (0 = {{padlu}} up)
|-
|-
|[3]
|[3]
|colspan="8"|{{padr}} Right Stick axis X (0: {{padrl}} left)
|colspan="8"|{{padr}} Right Stick axis X
|-
|-
|[4]
|[4]
|colspan="8"|{{padr}} Right Stick axis Y (0: {{padru}} up)
|colspan="8"|{{padr}} Right Stick axis Y
|-
|-
|[5]
|[5]
Line 824: Line 824:
|colspan="8"|{{padr2}} Trigger
|colspan="8"|{{padr2}} Trigger
|-
|-
|[10 - 11]
|[10]
|colspan="8"|Seems to be a timestamp. A common increment value between two reports is 188 (at full rate the report period is 1.25ms). This timestamp is used by the PS4 to process acceleration and gyroscope data.
|colspan="8"|Unknown, seems to count downwards, non-random pattern
|-
|[11]
|colspan="8"|Unknown, seems to count upwards by 3, but by 2 when [10] underflows
|-
|-
|[12]
|[12]
|colspan="8"|Battery Level
|colspan="8"|Battery Level
|-
|-
|[13 - 14]
|[13]
|colspan="8"|Gyro X: angular velocity measures (follows right-hand-rule)
|colspan="8"|Unknown
|-
|[14 - 15]
|colspan="8"|Accel Z (signed): orientation acceleration measures
|-
|-
|[15 - 16]
|[16 - 17]
|colspan="8"|Gyro Y
|colspan="8"|Accel Y
|-
|-
|[17 - 18]
|[18 - 19]
|colspan="8"|Gyro Z
|colspan="8"|Accel X
|-
|-
|[19 - 20]
|[20 - 21]
|colspan="8"|Accel X (signed): acceleration (positive: right)
|colspan="8"|Gyro X: orientation measures
|-
|-
|[21 - 22]
|[22 - 23]
|colspan="8"|Accel Y (signed): acceleration (positive: up)
|colspan="8"|Gyro Y
|-
|-
|[23 - 24]
|[24 - 25]
|colspan="8"|Accel Z (signed): acceleration (positive: towards player)
|colspan="8"|Gyro Z
|-
|-
|[25 - 29]
|[26 - 29]
|colspan="8"|Unknown
|colspan="8"|Unknown
|-
|-
Line 876: Line 882:
|-
|-
|[35]
|[35]
|0 if finger №1 is down.
|0 if finger 1 is down.
|colspan="7"|T-PAD: tracking numbers, unique to each finger (№1) down, so for each lift and repress, it gets a newly incremented figure.
|colspan="7"|T-PAD: tracking numbers, unique to each finger (№1), so for each lift and repress, it gets a newly incremented figure.
|-
|-
|[36 - 38]
|[36 - 38]
Line 890: Line 896:
|-
|-
|[39]
|[39]
|0 if finger №2 is down.
|0 if finger 2 is down.
|colspan="7"|T-PAD: tracking numbers, unique to each finger (№2) down.
|colspan="7"|T-PAD: tracking numbers, unique to each finger (№2).
|-
|-
|[40 - 42]
|[40 - 42]
Please note that all contributions to PS4 Developer wiki are considered to be released under the GNU Free Documentation License 1.2 (see PS4 Developer wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:

Cancel Editing help (opens in new window)