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

Base Helper class for joystick input tracking. For an example use, you may want to refer to Wireless Joystick Module Experiment With ESP8266 on ESP-Now More...

#include <ddjoystick.h>

Inheritance diagram for JoystickInterface:
ButtonJoystickBasic JoystickJoystick ButtonJoystick DecodedJoystick ButtonsOnly

Public Member Functions

const JoystickPresscheckJoystickPress (int repeat=0)
 
bool checkSWPressed (int repeat=0)
 
bool forButtonsOnly () const
 
const ABCDPressedcheckABCDPressed (int repeat=0)
 
bool checkAPressed (int repeat=0)
 
bool checkBPressed (int repeat=0)
 
bool checkCPressed (int repeat=0)
 
bool checkDPressed (int repeat=0)
 
bool checkJoystickPressCode (JoystickPressCode &joystickPressCode, int repeat=0)
 

Static Public Attributes

static const long BlackOutMillis = 50
 

Protected Member Functions

 JoystickInterface (bool buttonsOnly)
 
bool _checkPressed (char button, int repeat)
 
bool _checkPressedBypass (char button)
 
virtual int _checkPressedX (int repeat, bool raw)
 
virtual int _checkPressedY (int repeat, bool raw)
 
virtual bool _checkPressed (char button, int repeat, bool bypass)
 

Detailed Description

Base Helper class for joystick input tracking. For an example use, you may want to refer to Wireless Joystick Module Experiment With ESP8266 on ESP-Now

Member Function Documentation

◆ _checkPressed()

bool JoystickInterface::_checkPressed ( char  button,
int  repeat 
)
inlineprotected
Parameters
buttoncan be 'A' to 'E'