17 #include <QtCore/QObject> 18 #include <QtCore/QThread> 19 #include <QtCore/QScopedPointer> 20 #include <QtCore/QHash> 30 class HardwareAbstractionInterface;
49 Status status()
const override;
52 void reset()
override;
54 bool wasPressed(
int code)
override;
56 bool isPressed(
int code)
override;
58 int buttonCode(
bool wait =
true)
override;
61 void changeButtonState(
int code,
int value);
69 QScopedPointer<KeysWorker> mKeysWorker;
70 QThread mWorkerThread;
71 QHash<int, int> mKeysPressed;
Definition: analogSensor.h:23
Helper class to track device state (off, starting, ready, stopping, fail).
Definition: deviceState.h:26
Status
Device status.
Definition: deviceInterface.h:33
Definition: trikCommunicator.h:27
Implementation of handler for keys on a brick for a real robot.
Definition: keys.h:38
Class for handling keys on a brick.
Definition: keysInterface.h:26
Definition: brickFactory.h:21
Hardware abstraction, provides devices that are used to communicate with robot hardware or emulate it...
Definition: hardwareAbstractionInterface.h:29