1998-11-08 13:26:36 +01:00
|
|
|
/*
|
|
|
|
* USER input header file
|
|
|
|
* Copyright 1997 David Faure
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_INPUT_H
|
|
|
|
#define __WINE_INPUT_H
|
|
|
|
|
1999-06-26 16:58:24 +02:00
|
|
|
#include "windef.h"
|
|
|
|
|
1999-02-26 12:11:13 +01:00
|
|
|
extern BOOL MouseButtonsStates[3];
|
|
|
|
extern BOOL AsyncMouseButtonsStates[3];
|
1998-11-08 13:26:36 +01:00
|
|
|
extern BYTE InputKeyStateTable[256];
|
|
|
|
extern BYTE QueueKeyStateTable[256];
|
|
|
|
extern BYTE AsyncKeyStateTable[256];
|
1999-11-07 22:25:57 +01: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 13:26:36 +01:00
|
|
|
|
|
|
|
#endif /* __WINE_INPUT_H */
|
|
|
|
|