Ersa Wearable Platform
Embedded smartwatch firmware and application framework
Loading...
Searching...
No Matches
input.h
Go to the documentation of this file.
1#pragma once
2
3#include "ersa/common/types.h"
4#include "ersa/events/event.h"
5
6namespace ersa {
7namespace hal {
8
16class IInput {
17public:
18 virtual ~IInput() = default;
19
21 virtual Result<void> init() = 0;
27 virtual void poll() = 0;
29 virtual bool isPressed(events::ButtonId button) const = 0;
31 virtual bool hasPendingEvents() const = 0;
32};
33
34} // namespace hal
35} // namespace ersa
Definition types.h:52
Definition input.h:16
virtual ~IInput()=default
virtual bool isPressed(events::ButtonId button) const =0
virtual void poll()=0
virtual bool hasPendingEvents() const =0
virtual Result< void > init()=0
ButtonId
Definition event.h:56
Definition application.h:10