mirror of
https://github.com/QuantumLeaps/qpcpp.git
synced 2025-02-04 06:13:00 +08:00
13 lines
305 B
C++
13 lines
305 B
C++
// example of event signals
|
|
enum MySignals {
|
|
TIMEOUT_SIG = QP::Q_USER_SIG, // <===
|
|
BUTTON_PRESSED,
|
|
BUTTON_RELEASED,
|
|
. . .
|
|
};
|
|
|
|
// example of an event with paramters
|
|
struct QCalcEvt : public QP::QEvt { // inherits QP::QEvt
|
|
std::uint8_t keyId; // ID of the key depressed
|
|
};
|