1998-11-08 12:26:36 +00:00
|
|
|
/*
|
|
|
|
* USER input header file
|
|
|
|
* Copyright 1997 David Faure
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_INPUT_H
|
|
|
|
#define __WINE_INPUT_H
|
|
|
|
|
1999-06-26 14:58:24 +00:00
|
|
|
#include "windef.h"
|
|
|
|
|
1999-02-26 11:11:13 +00:00
|
|
|
extern BOOL MouseButtonsStates[3];
|
|
|
|
extern BOOL AsyncMouseButtonsStates[3];
|
1998-11-08 12:26:36 +00:00
|
|
|
extern BYTE InputKeyStateTable[256];
|
|
|
|
extern BYTE QueueKeyStateTable[256];
|
|
|
|
extern BYTE AsyncKeyStateTable[256];
|
1999-11-07 21:25:57 +00:00
|
|
|
extern DWORD PosX, PosY;
|
|
|
|
|
|
|
|
extern BOOL SwappedButtons;
|
|
|
|
|
|
|
|
#define GET_KEYSTATE() \
|
|
|
|
((MouseButtonsStates[SwappedButtons ? 2 : 0] ? MK_LBUTTON : 0) | \
|
|
|
|
(MouseButtonsStates[1] ? MK_RBUTTON : 0) | \
|
|
|
|
(MouseButtonsStates[SwappedButtons ? 0 : 2] ? MK_MBUTTON : 0) | \
|
|
|
|
(InputKeyStateTable[VK_SHIFT] & 0x80 ? MK_SHIFT : 0) | \
|
|
|
|
(InputKeyStateTable[VK_CONTROL] & 0x80 ? MK_CONTROL : 0))
|
|
|
|
|
1998-11-08 12:26:36 +00:00
|
|
|
|
|
|
|
#endif /* __WINE_INPUT_H */
|
|
|
|
|