Difference between revisions of "Network API"

From GIMX
Jump to: navigation, search
(Send report)
(Send report)
Line 70: Line 70:
 
| 6-9 || axis 1
 
| 6-9 || axis 1
 
|-
 
|-
| 10-13 || axis 2
+
| ... || ...
|-
 
| 14-17 || axis 3
 
|-
 
| 18-21 || axis 4
 
|-
 
| 22-25 || axis 5
 
|-
 
| 26-29 || axis 6
 
|-
 
| 30-33 || axis 7
 
|-
 
| 34-37 || axis 8
 
|-
 
| 38-41 || axis 9
 
|-
 
| 42-45 || axis 10
 
|-
 
| 46-49 || axis 11
 
|-
 
| 50-53 || axis 12
 
|-
 
| 54-57 || axis 13
 
|-
 
| 58-61 || axis 14
 
|-
 
| 62-65 || axis 15
 
|-
 
| 66-69 || axis 16
 
|-
 
| 70-73 || axis 17
 
|-
 
| 74-77 || axis 18
 
|-
 
| 78-81 || axis 19
 
|-
 
| 82-85 || axis 20
 
|-
 
| 86-89 || axis 21
 
|-
 
| 90-93 || axis 22
 
|-
 
| 94-97 || axis 23
 
|-
 
| 98-101 || axis 24
 
|-
 
| 102-105 || axis 25
 
|-
 
| 106-109 || axis 26
 
|-
 
| 110-113 || axis 27
 
|-
 
| 114-117 || axis 28
 
|-
 
| 118-121 || axis 29
 
|-
 
| 122-125 || axis 30
 
|-
 
| 126-129 || axis 31
 
|-
 
| 130-133 || axis 32
 
|-
 
| 134-137 || axis 33
 
|-
 
| 138-141 || axis 34
 
|-
 
| 142-145 || axis 35
 
|-
 
| 146-149 || axis 36
 
|-
 
| 150-153 || axis 37
 
 
|-
 
|-
 
| 154-157 || axis 38
 
| 154-157 || axis 38
 
|}
 
|}

Revision as of 19:34, 16 November 2015

This page describes how to talk to a GIMX instance that is listening for UDP packets on a specific port.
See the "--src IP:port" argument on the Command line page to learn how to start such a GIMX instance.

Get controller type

It's possible to send a packet to get the controller type from the remote GIMX.

Request
byte value
0 0x11
1 0x00
Answer
byte value
0 0x11
1 0x01
2 value
value type
0x00 JOYSTICK
0x01 360 PAD
0x02 SIXAXIS
0x05 DS4
0x07 T300RS PS4
0x08 G27 PS3
0x09 G29 PS4

Send report

All axes are signed integers.

The Controller Maps page describes the axes and the value ranges corresponding to each controller type.

Report
byte value
0 0xff
1 0x80 = 158
2-5 axis 0
6-9 axis 1
... ...
154-157 axis 38