2 * USER input header file
3 * Copyright 1997 David Faure
12 extern BOOL MouseButtonsStates
[3];
13 extern BOOL AsyncMouseButtonsStates
[3];
14 extern BYTE InputKeyStateTable
[256];
15 extern BYTE QueueKeyStateTable
[256];
16 extern BYTE AsyncKeyStateTable
[256];
17 extern DWORD PosX
, PosY
;
19 extern BOOL SwappedButtons
;
21 #define GET_KEYSTATE() \
22 ((MouseButtonsStates[SwappedButtons ? 2 : 0] ? MK_LBUTTON : 0) | \
23 (MouseButtonsStates[1] ? MK_RBUTTON : 0) | \
24 (MouseButtonsStates[SwappedButtons ? 0 : 2] ? MK_MBUTTON : 0) | \
25 (InputKeyStateTable[VK_SHIFT] & 0x80 ? MK_SHIFT : 0) | \
26 (InputKeyStateTable[VK_CONTROL] & 0x80 ? MK_CONTROL : 0))
29 #endif /* __WINE_INPUT_H */