Changeset 59346 in vbox
- Timestamp:
- Jan 14, 2016 1:21:25 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIKeyboardHandler.h
r59345 r59346 100 100 101 101 #ifdef Q_WS_WIN 102 /** Tells the keyboard event handler to skip host keyboard events. 103 * Used for HID LEDs sync when on Windows host a keyboard event 104 * is generated in order to change corresponding LED. */ 102 105 void winSkipKeyboardEvents(bool fSkip); 103 106 #endif /* Q_WS_WIN */ … … 105 108 #if QT_VERSION < 0x050000 106 109 # if defined(Q_WS_WIN) 110 /** Qt4: Win: Performs final pre-processing of all the native events. */ 107 111 bool winEventFilter(MSG *pMsg, ulong uScreenId); 108 112 # elif defined(Q_WS_X11) 113 /** Qt4: X11: Performs final pre-processing of all the native events. */ 109 114 bool x11EventFilter(XEvent *pEvent, ulong uScreenId); 110 115 # endif /* Q_WS_X11 */ 111 116 #else /* QT_VERSION >= 0x050000 */ 117 /** Qt5: Performs final pre-processing of all the native events. */ 112 118 bool nativeEventFilter(void *pMessage, ulong uScreenId); 113 119 #endif /* QT_VERSION >= 0x050000 */ … … 144 150 145 151 #if defined(Q_WS_MAC) 152 /** Mac: Installs/deinstalls low level keyboard hook. */ 146 153 void darwinGrabKeyboardEvents(bool fGrab); 154 /** Mac: Performs initial pre-processing of all the native keyboard events. */ 147 155 static bool darwinEventHandlerProc(const void *pvCocoaEvent, const void *pvCarbonEvent, void *pvUser); 156 /** Mac: Performs initial pre-processing of all the native keyboard events. */ 148 157 bool darwinKeyboardEvent(const void *pvCocoaEvent, EventRef inEvent); 149 158 #elif defined(Q_WS_WIN) 159 /** Win: Performs initial pre-processing of all the native keyboard events. */ 150 160 static LRESULT CALLBACK lowLevelKeyboardProc(int nCode, WPARAM wParam, LPARAM lParam); 161 /** Win: Performs initial pre-processing of all the native keyboard events. */ 151 162 bool winLowKeyboardEvent(UINT msg, const KBDLLHOOKSTRUCT &event); 152 163 #endif /* Q_WS_WIN */ … … 201 212 202 213 #if defined(Q_WS_MAC) 203 /* The current modifier key mask. Used to figure out which modifier 204 * key was pressed when we get a kEventRawKeyModifiersChanged event. */ 214 /** Holds the current modifiers key mask. */ 205 215 UInt32 m_darwinKeyModifiers; 216 /** Holds whether the keyboard is grabbed. */ 206 217 bool m_fKeyboardGrabbed; 218 /** Holds the keyboard hook view index. */ 207 219 int m_iKeyboardGrabViewIndex; 208 220 #elif defined(Q_WS_WIN) 209 221 /* Currently this is used in winLowKeyboardEvent() only: */ 210 222 bool m_bIsHostkeyInCapture; 211 /* Keyboard hook required to capture keyboard event under windows. */223 /** Holds the keyboard handler reference to be accessible from the keyboard hook. */ 212 224 static UIKeyboardHandler *m_spKeyboardHandler; 225 /** Holds the keyboard hook instance. */ 213 226 HHOOK m_keyboardHook; 227 /** Holds the keyboard hook view index. */ 214 228 int m_iKeyboardHookViewIndex; 215 /* A flag that used to tell kbd event filter to ignore keyboard events*/229 /** Holds whether the keyboard event filter should ignore keyboard events. */ 216 230 bool m_fSkipKeyboardEvents; 217 231 /** Holds the object monitoring key event stream for problematic AltGr events. */
Note:
See TracChangeset
for help on using the changeset viewer.

