6 #ifndef SWIFT_INPUT_KEYBOARD_WINDOWS_H
7 #define SWIFT_INPUT_KEYBOARD_WINDOWS_H
21 namespace swift::input
40 virtual bool init()
override;
48 void addKey(WPARAM vkcode);
49 void removeKey(WPARAM vkcode);
50 void processKeyEvent(
DWORD vkCode, WPARAM event);
51 void pollKeyboardState();
53 const bool useWindowsHook =
false;
56 static LRESULT CALLBACK keyboardProc(
int nCode, WPARAM wParam, LPARAM lParam);
61 QVector<int> m_pressedKeys;
unsigned long DWORD
Fake Windows DWORD.