In CreateDIBSection function, if hdc is NULL it now uses the desktop DC
[wine.git] / include / input.h
blobb622abfe63244aa10a003d1020ba78f4924b1044
1 /*
2 * USER input header file
3 * Copyright 1997 David Faure
5 */
7 #ifndef __WINE_INPUT_H
8 #define __WINE_INPUT_H
10 #include "windef.h"
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 */