Ersa Wearable Platform
Embedded smartwatch firmware and application framework
Loading...
Searching...
No Matches
include
ersa
hal
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
6
namespace
ersa
{
7
namespace
hal {
8
16
class
IInput
{
17
public
:
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
ersa::Result
Definition
types.h:52
ersa::hal::IInput
Definition
input.h:16
ersa::hal::IInput::~IInput
virtual ~IInput()=default
ersa::hal::IInput::isPressed
virtual bool isPressed(events::ButtonId button) const =0
ersa::hal::IInput::poll
virtual void poll()=0
ersa::hal::IInput::hasPendingEvents
virtual bool hasPendingEvents() const =0
ersa::hal::IInput::init
virtual Result< void > init()=0
event.h
ersa::events::ButtonId
ButtonId
Definition
event.h:56
ersa
Definition
application.h:10
types.h
Generated by
1.9.8