IoAbstraction
Public Member Functions | List of all members
KeyboardItem Class Reference

#include <SwitchInput.h>

Public Member Functions

 KeyboardItem (pinid_t pin, KeyCallbackFn callback, uint8_t repeatInterval=NO_REPEAT, bool keyLogicIsInverted=false)
 
 KeyboardItem (pinid_t pin, SwitchListener *switchListener, uint8_t repeatInterval=NO_REPEAT, bool keyLogicIsInverted=false)
 
 KeyboardItem (const KeyboardItem &other)
 
KeyboardItemoperator= (const KeyboardItem &other)
 
void checkAndTrigger (uint8_t pin)
 
void onRelease (KeyCallbackFn callbackOnRelease)
 
bool isDebouncing () const
 
bool isPressed () const
 
bool isHeld () const
 
pinid_t getPin () const
 
pinid_t getKey () const
 
void trigger (bool held)
 
void triggerRelease (bool held)
 
KeyPressState getState () const
 
void setState (KeyPressState state)
 
bool isUsingListener ()
 
bool isLogicInverted ()
 
void changeOnPressed (KeyCallbackFn pFunction)
 
void changeListener (SwitchListener *listener)
 

Detailed Description

An internal class that represents the state of a single key being managed by switches.


The documentation for this class was generated from the following files: