|
Ersa Wearable Platform
Embedded smartwatch firmware and application framework
|
#include <input.h>
Public Member Functions | |
| virtual | ~IInput ()=default |
| virtual Result< void > | init ()=0 |
| virtual void | poll ()=0 |
| virtual bool | isPressed (events::ButtonId button) const =0 |
| virtual bool | hasPendingEvents () const =0 |
Normalized board input events and button state.
The BSP supplies physical pin assignments and polarity; this interface exposes product-relative buttons and normalized events. As a result, apps never need to poll GPIO numbers or know whether a switch is active low.
|
virtualdefault |
|
pure virtual |
Report queued normalized input events that still need application dispatch.
|
pure virtual |
Configure board pins, debounce state, and event publication.
|
pure virtual |
Query current debounced state using a logical ButtonId.
|
pure virtual |
Sample/debounce physical controls and post resulting events. Call regularly from the application task; hardware callbacks should not call app code directly.