GPC Developer Guides
...
Constants
Controller
Nintendo Switch
This is a list of all Nintendo Switch input identifiers, values, and ranges.
Name | Value | Range |
---|---|---|
SWI_HOME | 0 | 0 | 100 |
SWI_MINUS | 1 | 0 | 100 |
SWI_PLUS | 2 | 0 | 100 |
SWI_R | 3 | 0 | 100 |
SWI_ZR | 4 | 0 ~ 100 |
SWI_R3 | 5 | 0 | 100 |
SWI_L | 6 | 0 | 100 |
SWI_ZL | 7 | 0 ~ 100 |
SWI_L3 | 8 | 0 | 100 |
SWI_RX | 9 | -100 ~ 100 |
SWI_RY | 10 | -100 ~ 100 |
SWI_LX | 11 | -100 ~ 100 |
SWI_LY | 12 | -100 ~ 100 |
SWI_UP | 13 | 0 | 100 |
SWI_DOWN | 14 | 0 | 100 |
SWI_LEFT | 15 | 0 | 100 |
SWI_RIGHT | 16 | 0 | 100 |
SWI_X | 17 | 0 | 100 |
SWI_A | 118 | 0 | 100 |
SWI_B | 19 | 0 | 100 |
SWI_Y | 20 | 0 | 100 |
SWI_ACCX | 21 | -25 ~ 25 |
SWI_ACCY | 22 | -25 ~ 25 |
SWI_ACCZ | 23 | -25 ~ 25 |
SWI_GYROX | 24 | -25 ~ 25 |
SWI_GYROY | 25 | -25 ~ 25 |
SWI_GYROZ | 26 | -25 ~ 25 |
SWI_CAPTURE | 27 | 0 | 100 |
Range | Meaning |
---|---|
0 | 100 | Either 0 or 100 |
0 ~ 100 | Any value between 0 and 100 |
-100 ~ 100 | Any value between -100 and 100 |
Note: for accelerometers, every 25% represents 1G