ArduinoDumbDisplay v0.9.9-r34
DumbDisplay Arduino Library -- https://github.com/trevorwslee/Arduino-DumbDisplay
 
Loading...
Searching...
No Matches
JoystickPressTracker Class Reference

Helper class for joystick input tracking. See JoystickInterface. More...

#include <ddjoystick.h>

Public Member Functions

 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 Public Attributes

static const int DefAutoTuneThreshold = 50
 
static const int DefMinReading = DefAutoTuneThreshold
 
static const int DefMaxReading = 1023 - DefAutoTuneThreshold
 

Detailed Description

Helper class for joystick input tracking. See JoystickInterface.

Constructor & Destructor Documentation

◆ JoystickPressTracker()

JoystickPressTracker::JoystickPressTracker ( uint8_t  pin,
bool  reverseDir,
int  autoTuneThreshold = DefAutoTuneThreshold 
)
inline
Parameters
autoTuneThreshold-1 if no auto tune