The BLOCKS SDK
ControlButton::Listener Struct Referenceabstract

Description

A listener that can be attached to a ControlButton object so that it gets called when the button is pushed or released.

Public Member Functions

virtual ~Listener ()
 
virtual void buttonPressed (ControlButton &, Block::Timestamp)=0
 Called when the button is pressed. More...
 
virtual void buttonReleased (ControlButton &, Block::Timestamp)=0
 Called when the button is released. More...
 

Constructor & Destructor Documentation

◆ ~Listener()

virtual ControlButton::Listener::~Listener ( )
virtual

Member Function Documentation

◆ buttonPressed()

virtual void ControlButton::Listener::buttonPressed ( ControlButton ,
Block::Timestamp   
)
pure virtual

Called when the button is pressed.

◆ buttonReleased()

virtual void ControlButton::Listener::buttonReleased ( ControlButton ,
Block::Timestamp   
)
pure virtual

Called when the button is released.


The documentation for this struct was generated from the following file: