28 #include "PluggableUSB.h" 33 #define GAMEPAD_DPAD_CENTERED 0 34 #define GAMEPAD_DPAD_UP 1 35 #define GAMEPAD_DPAD_UP_RIGHT 2 36 #define GAMEPAD_DPAD_RIGHT 3 37 #define GAMEPAD_DPAD_DOWN_RIGHT 4 38 #define GAMEPAD_DPAD_DOWN 5 39 #define GAMEPAD_DPAD_DOWN_LEFT 6 40 #define GAMEPAD_DPAD_LEFT 7 41 #define GAMEPAD_DPAD_UP_LEFT 8 106 void press(uint8_t b);
111 void xAxis(int16_t a);
112 void yAxis(int16_t a);
113 void zAxis(int8_t a);
117 void dPad1(int8_t d);
118 void dPad2(int8_t d);
uint8_t button2
Definition: Gamepad.h:50
int8_t zAxis
Definition: Gamepad.h:91
uint8_t button13
Definition: Gamepad.h:62
HID_GamepadReport_Data_t _report
Definition: Gamepad.h:122
uint32_t buttons
Definition: Gamepad.h:46
uint8_t button15
Definition: Gamepad.h:64
void dPad1(int8_t d)
Definition: Gamepad.cpp:146
void yAxis(int16_t a)
Definition: Gamepad.cpp:121
uint8_t button20
Definition: Gamepad.h:70
uint8_t dPad2
Definition: Gamepad.h:95
uint8_t button32
Definition: Gamepad.h:83
uint8_t button4
Definition: Gamepad.h:52
uint8_t button17
Definition: Gamepad.h:67
void buttons(uint32_t b)
Definition: Gamepad.cpp:111
uint8_t button7
Definition: Gamepad.h:55
uint8_t button10
Definition: Gamepad.h:59
uint8_t button25
Definition: Gamepad.h:76
uint8_t button30
Definition: Gamepad.h:81
uint8_t button9
Definition: Gamepad.h:58
uint8_t button5
Definition: Gamepad.h:53
uint8_t button16
Definition: Gamepad.h:65
void zAxis(int8_t a)
Definition: Gamepad.cpp:126
uint8_t button27
Definition: Gamepad.h:78
void rxAxis(int16_t a)
Definition: Gamepad.cpp:131
void release(uint8_t b)
Definition: Gamepad.cpp:102
int8_t rzAxis
Definition: Gamepad.h:92
Gamepad_ Gamepad
Definition: Gamepad.cpp:160
void press(uint8_t b)
Definition: Gamepad.cpp:97
uint8_t button19
Definition: Gamepad.h:69
uint8_t button1
Definition: Gamepad.h:49
uint8_t button3
Definition: Gamepad.h:51
uint8_t button23
Definition: Gamepad.h:73
void ryAxis(int16_t a)
Definition: Gamepad.cpp:136
uint8_t button24
Definition: Gamepad.h:74
void write(void)
Definition: Gamepad.cpp:92
int16_t ryAxis
Definition: Gamepad.h:89
void xAxis(int16_t a)
Definition: Gamepad.cpp:116
uint8_t button8
Definition: Gamepad.h:56
int16_t rxAxis
Definition: Gamepad.h:88
void sendReport(void *data, int length)
Definition: Gamepad.cpp:156
uint8_t button11
Definition: Gamepad.h:60
uint8_t button14
Definition: Gamepad.h:63
void begin(void)
Definition: Gamepad.cpp:82
int16_t xAxis
Definition: Gamepad.h:85
uint8_t button18
Definition: Gamepad.h:68
void end(void)
Definition: Gamepad.cpp:87
uint8_t button21
Definition: Gamepad.h:71
uint8_t button31
Definition: Gamepad.h:82
void releaseAll(void)
Definition: Gamepad.cpp:107
uint8_t button28
Definition: Gamepad.h:79
Gamepad_(void)
Definition: Gamepad.cpp:76
uint8_t button12
Definition: Gamepad.h:61
uint8_t button6
Definition: Gamepad.h:54
uint8_t button22
Definition: Gamepad.h:72
uint8_t button29
Definition: Gamepad.h:80
uint8_t button26
Definition: Gamepad.h:77
uint8_t dPad1
Definition: Gamepad.h:94
int16_t yAxis
Definition: Gamepad.h:86
void dPad2(int8_t d)
Definition: Gamepad.cpp:151
void rzAxis(int8_t a)
Definition: Gamepad.cpp:141