47 #include <KD/ATX_keyboard.h> 55 switch (event->type) {
57 qDebug() <<
"KD_EVENT_INPUT";
59 case KD_EVENT_INPUT_POINTER:
60 qDebug() <<
"KD_EVENT_INPUT_POINTER";
62 case KD_EVENT_WINDOW_CLOSE:
63 qDebug() <<
"KD_EVENT_WINDOW_CLOSE";
65 case KD_EVENT_WINDOWPROPERTY_CHANGE:
66 qDebug() <<
"KD_EVENT_WINDOWPROPERTY_CHANGE";
67 qDebug() <<
event->data.windowproperty.pname;
69 case KD_EVENT_WINDOW_FOCUS:
70 qDebug() <<
"KD_EVENT_WINDOW_FOCUS";
72 case KD_EVENT_WINDOW_REDRAW:
73 qDebug() <<
"KD_EVENT_WINDOW_REDRAW";
76 qDebug() <<
"KD_EVENT_USER";
78 case KD_EVENT_INPUT_KEY_ATX:
79 qDebug() <<
"KD_EVENT_INPUT_KEY_ATX";
88 kdDefaultEvent(event);
104 const KDEvent *
event = kdWaitEvent(msec);
106 kdDefaultEvent(
event);
107 while ((
event = kdWaitEvent(0)) != 0) {
108 kdDefaultEvent(
event);
122 KDEvent *
event = kdCreateEvent();
124 event->userptr =
this;
#define QT_END_NAMESPACE
This macro expands to.
QOpenKODEEventLoopIntegration()
Q_CORE_EXPORT void qDebug(const char *,...)
#define QT_BEGIN_NAMESPACE
This macro expands to.
void qtNeedsToProcessEvents()
static const int QT_EVENT_WAKEUP_EVENTLOOP
void kdprocessevent(const KDEvent *event)