/*============================================================================*/
/*
	ww_key.h

	WonderWitchキー制御

	Version		Date			Design		Comment
	--------------------------------------------------------------------
	1.00		2000/08/19		Bonz

*/
/*============================================================================*/
#ifndef _WW_KEY_H_
#define _WW_KEY_H_

/*==============================================================================
//	INCLUDE
//============================================================================*/

/*==============================================================================
//	DEFINE
//============================================================================*/

/*==============================================================================
//	TYPE DEFINE
//============================================================================*/
typedef struct _KEY {
	unsigned char	rate;	/* オートリピート開始後のリピート間隔 */
	unsigned char	delay;	/* オートリピートを開始するまでの遅延時間 */
	unsigned short	prev;	/* 前回の hit */
	unsigned short	hit;	/* 押されたボタンデータ */
	unsigned short	press;	/* 押されているボタンデータ */
} KEY;

/*==============================================================================
//	ENUM
//============================================================================*/

/*==============================================================================
//	RESOURCE
//============================================================================*/

/*==============================================================================
//	GLOBAL
//============================================================================*/
extern KEY far		*key;

/*==============================================================================
//	PROTTYPE
//============================================================================*/
void WWSYS_InitKey(int, int);	/* キーシステム初期化 */
void WWSYS_WatchKey(void);		/* キー入力監視 */

/*==============================================================================
//	FUNCTION
//============================================================================*/
#endif
