qpcpp/doxygen/snippets/qep_qevt.cpp

13 lines
305 B
C++
Raw Normal View History

2022-08-11 15:36:19 -04:00
// 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
2022-08-11 15:36:19 -04:00
std::uint8_t keyId; // ID of the key depressed
2013-10-10 20:01:51 -04:00
};