INPUT.H
资源名称:MSDN_VC98.zip [点击查看]
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:1k
源码类别:
Windows编程
开发平台:
Visual C++
- /*==========================================================================
- *
- * Copyright (C) 1995-1997 Microsoft Corporation. All Rights Reserved.
- *
- * File: input.h
- *
- *
- ***************************************************************************/
- #ifndef _INPUT_H
- #define _INPUT_H
- #include <dinput.h>
- //--------------------------------------------------------------------------
- // keyboard buffer size
- #define KEYBUFSIZE 32
- /*
- * keyboard commands
- */
- #define KEY_STOP 0x00000001l
- #define KEY_DOWN 0x00000002l
- #define KEY_LEFT 0x00000004l
- #define KEY_RIGHT 0x00000008l
- #define KEY_UP 0x00000010l
- #define KEY_FIRE 0x00000020l
- #define KEY_THROW 0x00000040l
- #define KEY_SHIELD 0x00000080l
- //--------------------------------------------------------------------------
- // external variables
- extern BOOL bKeyboardAcquired;
- extern DWORD (*ReadGameInput)(void);
- //--------------------------------------------------------------------------
- // prototypes
- BOOL InitInput(HINSTANCE hInst, HWND hWnd);
- void CleanupInput(void);
- BOOL ReacquireInput(void);
- BOOL PickInputDevice(int);
- //--------------------------------------------------------------------------
- #endif // _INPUT_H