17 #include <QtCore/QObject> 18 #include <QtCore/QScopedPointer> 19 #include <QtCore/QSet> 20 #include <QtCore/QReadWriteLock> 49 void readKeysEvent(
int eventType,
int code,
int value,
const trikKernel::TimeVal &eventTime);
58 QScopedPointer<trikHal::EventFileInterface> mEventFile;
61 QSet<int> mWasPressed;
bool wasPressed(int code)
Returns true if a key with given code was pressed.
Definition: keysWorker.cpp:49
Helper class to track device state (off, starting, ready, stopping, fail).
Definition: deviceState.h:26
Structure of a time value in a convenient format.
Definition: timeVal.h:20
void reset()
Clear data about previous key pressures.
Definition: keysWorker.cpp:40
KeysWorker(const QString &keysPath, DeviceState &state, const trikHal::HardwareAbstractionInterface &hardwareAbstraction)
Constructor.
Definition: keysWorker.cpp:25
void buttonPressed(int code, int value)
Triggered when button state changed (pressed or released).
Definition: trikCommunicator.h:27
Watches for keys on a brick, intended to work in separate thread.
Definition: keysWorker.h:29
Hardware abstraction, provides devices that are used to communicate with robot hardware or emulate it...
Definition: hardwareAbstractionInterface.h:29