Helper class for joystick input tracking. See JoystickInterface.
More...
#include <ddjoystick.h>
|
| JoystickPressTracker (uint8_t pin, int minReading=DefMinReading, int maxReading=DefMaxReading) |
|
| JoystickPressTracker (uint8_t pin, bool reverseDir, int autoTuneThreshold=DefAutoTuneThreshold) |
|
int8_t | checkPressed (int repeat=0) |
|
int | checkPressedBypass () |
|
int8_t | checkPressed (int repeat, bool bypass) |
|
int | one () |
|
int | minusOne () |
|
int | readBypass () |
|
|
static const int | DefAutoTuneThreshold = 50 |
|
static const int | DefMinReading = DefAutoTuneThreshold |
|
static const int | DefMaxReading = 1023 - DefAutoTuneThreshold |
|
Helper class for joystick input tracking. See JoystickInterface.
◆ JoystickPressTracker()
JoystickPressTracker::JoystickPressTracker |
( |
uint8_t |
pin, |
|
|
bool |
reverseDir, |
|
|
int |
autoTuneThreshold = DefAutoTuneThreshold |
|
) |
| |
|
inline |
- Parameters
-
autoTuneThreshold | -1 if no auto tune |