/*==========================================================================
*
* Copyright (C) 1995-1996 Microsoft Corporation. All Rights Reserved.
*
* File: input.h
*
* @@BEGIN_MSINTERNAL
* History:
* DateByReason
* ============
* 22-aug-96davidklinitial
*
* @@END_MSINTERNAL
*
***************************************************************************/
#ifndef _INPUT_H
#define _INPUT_H
#include <dinput.h>
//--------------------------------------------------------------------------
// @@BEGIN_MSINTERNAL
#define BEGIN_CONST_DATA data_seg(".text", "CODE")
#define END_CONST_DATA data_seg(".data", "DATA")
// @@END_MSINTERNAL
// 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