--- np2/keystat.h 2004/03/28 10:50:16 1.6 +++ np2/keystat.h 2005/03/18 09:23:10 1.12 @@ -122,16 +122,12 @@ enum { #endif enum { - NKEY_USER1 = 0x76, - NKEY_USER2 = 0x77 -}; - -enum { NKEY_SYSTEM = 0x90, NKEY_USER = 0x90, NKEY_USERKEYS = 2, + NKEYREF_uPD8255 = 0xf7, NKEYREF_USER = 0xf8, NKEYREF_SOFTKBD = 0xf9, NKEYREF_NC = 0xff @@ -158,19 +154,32 @@ typedef struct { NKEYM15 user[NKEY_USERKEYS]; } NKEYTBL; +typedef struct { + UINT8 reqparam; + UINT8 mode; + UINT8 kbdtype; + UINT8 keyrep; + UINT8 capsref; + UINT8 kanaref; +} KEYCTRL; + #ifdef __cplusplus extern "C" { #endif extern NKEYTBL nkeytbl; +extern KEYCTRL keyctrl; void keystat_initialize(void); void keystat_tblreset(void); void keystat_tblset(REG8 ref, const UINT8 *key, UINT cnt); -void keystat_tblload(const char *filename); +void keystat_tblload(const OEMCHAR *filename); + +void keystat_ctrlreset(void); +void keystat_ctrlsend(REG8 dat); void keystat_keydown(REG8 ref); void keystat_keyup(REG8 ref);