src/gui/embedded/qkbdqnx_qws.cpp
changeset 37 758a864f9613
parent 18 2f34d5167611
equal deleted inserted replaced
36:ef0373b55136 37:758a864f9613
   148     // QNX is nice enough to translate the raw keyboard data into a QNX data structure
   148     // QNX is nice enough to translate the raw keyboard data into a QNX data structure
   149     // Now we just have to translate it into a format Qt understands.
   149     // Now we just have to translate it into a format Qt understands.
   150 
   150 
   151     // figure out whether it's a press
   151     // figure out whether it's a press
   152     bool isPress = packet.data.key_cap & KEY_DOWN;
   152     bool isPress = packet.data.key_cap & KEY_DOWN;
   153     // figure out wheter the key is still pressed and the key event is repeated
   153     // figure out whether the key is still pressed and the key event is repeated
   154     bool isRepeat = packet.data.key_cap & KEY_REPEAT;
   154     bool isRepeat = packet.data.key_cap & KEY_REPEAT;
   155 
   155 
   156     Qt::Key key = Qt::Key_unknown;
   156     Qt::Key key = Qt::Key_unknown;
   157     int unicode = 0xffff;
   157     int unicode = 0xffff;
   158 
   158