Add new (stubbed) API that simplifies use of the joystick library.

This commit is contained in:
2015-11-06 10:48:38 -05:00
parent 0cdaf634a7
commit cd0fe5829e
2 changed files with 34 additions and 7 deletions

View File

@ -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;