Features 0x02

This command is sent from a host to retrieve features associated with the gamepad. This data is used by the host driver to determine what the gamepad is, how it’s laid out, and which features are enabled.

The device must acknowledge this command to be initialized by SDL.

Command Response

Byte

Data

Meaning

0-1

Various

Protocol Version

2

Various

Feature Flags 1 ( SeeFeature Flags Format )

3

Various

Feature Flags 2 ( SeeFeature Flags Format )

4

0x00-0xFF

Gamepad Physical Type ( SDL Gamepad Type )

5

0x00-0xFF

Face Style & Sub-Product (Product Metadata )

6-7

Uint16

Polling rate (Microseconds)

8-9

Uint16

Accelerometer G force range

10-11

Uint16

Gyroscope DPS sensitivity range

12-15

Uint8

Button Usage Masks ( See Buttons Format )

16

Uint8

Touchpad Count (Max 2 touchpads)

17

Uint8

Touchpad Finger Count (Max 2 fingers TOTAL)

18-23

Uint8

MAC Address or Serial Number