Doly C++ SDK v1.00
Loading...
Searching...
No Matches
TouchControl.h
Go to the documentation of this file.
1#pragma once
2#include <stdint.h>
3#include "TouchEvent.h"
4
23
24namespace TouchControl
25{
35 int8_t init();
36
45 int8_t dispose();
46
51 bool isActive();
52
58 bool isTouched(TouchSide side);
59
67 float getVersion();
68}
Event registration helpers for the touch subsystem.
TouchSide
Which touch sensor(s) to address.
Definition TouchEventListener.h:27
Definition TouchControl.h:25
bool isActive()
Check whether the touch controller is active (initialized and running).
int8_t dispose()
Stop the worker thread and release resources.
bool isTouched(TouchSide side)
Check whether the given side is currently touched.
float getVersion()
Get current library version.
int8_t init()
Initialize the touch controller and start the worker thread.