Add new (stubbed) API that simplifies use of the joystick library.
This commit is contained in:
parent
0cdaf634a7
commit
cd0fe5829e
2 changed files with 34 additions and 7 deletions
12
Joystick.cpp
12
Joystick.cpp
|
@ -19,6 +19,18 @@ void Joystick::Init() {
|
|||
if (_debug) Serial.println("DEBUG: Joystick library initialized.");
|
||||
}
|
||||
|
||||
void Joystick::AddButton(uint8_t pin, ButtonType type) {
|
||||
// stub
|
||||
}
|
||||
|
||||
void Joystick::AddAxis(uint8_t pin) {
|
||||
// stub
|
||||
}
|
||||
|
||||
void Joystick::Update() {
|
||||
// stub
|
||||
}
|
||||
|
||||
void Joystick::SetAxis(uint8_t axis, int16_t value) {
|
||||
if (axis >= JOYSTICK_NUM_AXES) return;
|
||||
_joyReport.axis[axis] = value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue