Gateware Libraries
6.3.A
Beta Build
GControllerInputDefines.h
1
#ifndef GCONTROLLERINPUTDEFINES_H
2
#define GCONTROLLERINPUTDEFINES_H
3
14
// Controller IDs
15
#define G_GENERAL_CONTROLLER 0x00000
16
#define G_XBOX_CONTROLLER 0x00001
17
#define G_PS4_CONTROLLER 0x00002
18
19
// Input type
20
#define G_SOUTH_BTN 0x00
21
#define G_EAST_BTN 0x01
22
#define G_NORTH_BTN 0x02
23
#define G_WEST_BTN 0x03
24
#define G_LEFT_SHOULDER_BTN 0x04
25
#define G_RIGHT_SHOULDER_BTN 0x05
26
#define G_LEFT_TRIGGER_AXIS 0x06
27
#define G_RIGHT_TRIGGER_AXIS 0x07
28
#define G_DPAD_LEFT_BTN 0x08
29
#define G_DPAD_RIGHT_BTN 0x09
30
#define G_DPAD_UP_BTN 0x0A
31
#define G_DPAD_DOWN_BTN 0x0B
32
#define G_LEFT_THUMB_BTN 0x0C
33
#define G_RIGHT_THUMB_BTN 0x0D
34
#define G_START_BTN 0x0E
35
#define G_SELECT_BTN 0x0F
36
#define G_LX_AXIS 0x10
37
#define G_LY_AXIS 0x11
38
#define G_RX_AXIS 0x12
39
#define G_RY_AXIS 0x13
40
#define G_UNKOWN_INPUT 0xff // Should never be received
41
42
#endif
G_System
GControllerInputDefines.h
Generated by
1.8.14