最終更新:2014-02-28 (金) 02:46:01 (3682d)
DUALSHOCK 4/Report
Top / DUALSHOCK 4 / Report
byte index | bit 7 | bit 6 | bit 5 | bit 4 | bit 3 | bit 2 | bit 1 | bit 0 |
0 | Report ID (always 0x01) | |||||||
1 | Left Stick X (0 = left) | |||||||
2 | Left Stick Y (0 = up) | |||||||
3 | Right Stick X | |||||||
4 | Right Stick Y | |||||||
5 | D-PAD (hat format, 0x08 is released, 0=N, 1=NE, 2=E, 3=SE, 4=S, 5=SW, 6=W, 7=NW) | □ | ☓ | ○ | △ | |||
6 | L1 | R1 | L2 | R2 | SHARE | OPT | L3 | R3 |
5 | △ | ○ | ☓ | □ | D-PAD (hat format, 0x08 is released, 0=N, 1=NE, 2=E, 3=SE, 4=S, 5=SW, 6=W, 7=NW) | |||
6 | R3 | L3 | OPT | SHARE | R2 | L2 | R1 | L1 |
7 | Timestamp(counts up by 1 per report) | Touchpad-Button | PS | |||||
8 | L2 Analog (0 = released, 0xFF = fully pressed) | |||||||
9 | R2 Analog | |||||||
10 | Unknown, seems to count downwards, non-random pattern | |||||||
11 | Unknown, seems to count upwards by 3, but by 2 when 10 underflows | |||||||
12 | Battery Status | |||||||
13-14 | Accel Y (int16 LE) | |||||||
15-16 | Accel X (int16 LE) | |||||||
17-18 | Accel Z (int16 LE) | |||||||
19-20 | Gyro Roll -(int16 LE) | |||||||
21-22 | Gyro Yaw (int16 LE) | |||||||
23-24 | Gyro Pitch (int16 LE) | |||||||
25-29 | ? | |||||||
30 | ? | EXT:Mic | EXT:Headphone | via USB | ? | |||
31-32 | ? | |||||||
33 | Says how many touch packets to read, only seen 01 or 02 set | |||||||
34 | This appears to be another auto incrementing number to track last update, but need to do research | |||||||
35 | Touch0 Active | Touch0 ID | ||||||
36 | Touch0 X Lower 8bit | |||||||
37 | Touch0 Y Lower 4bit | Touch0 X Uppler 4bit | ||||||
38 | Touch0 Y Uppler 8bit | |||||||
39 | Touch1 Active | Touch1 ID | ||||||
40 | Touch1 X Lower 8bit | |||||||
41 | Touch1 Y Lower 4bit | Touch1 X Uppler 4bit | ||||||
42 | Touch1 Y Uppler 8bit | |||||||
43-51 | as finger moves over the touchpad, a duplicate motion (likely previous position?) is sent, for both fingers, even if just one is moving | |||||||
52-63 | ? |
- TouchPad? resolution:1912x941
References
- http://eleccelerator.com/wiki/index.php?title=DualShock_4
- https://github.com/chrippa/ds4drv/blob/master/ds4drv/device.py
- https://github.com/ehd/node-ds4
- https://gist.github.com/johndrinkwater/7708901
- https://code.google.com/p/ds4-tool/source/browse/ScpControl/DS4Device.cs
- https://code.google.com/p/ds4-tool/source/browse/ScpControl/Touchpad.cs