|
|
| version 1.12, 2004/03/31 19:23:37 | version 1.16, 2005/02/04 05:32:22 |
|---|---|
| Line 5 | Line 5 |
| #include "iocore.h" | #include "iocore.h" |
| #include "keystat.h" | #include "keystat.h" |
| #include "keystat.tbl" | #include "keystat.tbl" |
| #include "softkbd.h" | |
| typedef struct { | typedef struct { |
| Line 179 static void reloadled(void) { | Line 180 static void reloadled(void) { |
| keyctrl.kanaref = keystat.ref[0x72]; | keyctrl.kanaref = keystat.ref[0x72]; |
| keyctrl.capsref = keystat.ref[0x71]; | keyctrl.capsref = keystat.ref[0x71]; |
| #if defined(SUPPORT_SOFTKBD) | |
| softkbd_led(getledstat()); | |
| #endif | |
| } | } |
| void keystat_ctrlreset(void) { | void keystat_ctrlreset(void) { |
| Line 186 void keystat_ctrlreset(void) { | Line 190 void keystat_ctrlreset(void) { |
| keyctrl.reqparam = 0; | keyctrl.reqparam = 0; |
| keystat.ref[0x72] = keyctrl.kanaref; | keystat.ref[0x72] = keyctrl.kanaref; |
| keystat.ref[0x71] = keyctrl.capsref; | keystat.ref[0x71] = keyctrl.capsref; |
| #if defined(SUPPORT_SOFTKBD) | |
| softkbd_led(getledstat()); | |
| #endif | |
| } | } |
| void keystat_ctrlsend(REG8 dat) { | void keystat_ctrlsend(REG8 dat) { |
| Line 263 void keystat_down(const UINT8 *key, REG8 | Line 270 void keystat_down(const UINT8 *key, REG8 |
| keydata = *key++; | keydata = *key++; |
| keycode = (keydata & 0x7f); | keycode = (keydata & 0x7f); |
| if (keycode < 0x70) { | if (keycode < 0x70) { |
| #if 1 // 05/02/04 | |
| if (keystat.ref[keycode] != NKEYREF_NC) { | |
| if (!(kbexflag[keycode] & KBEX_NONREP)) { | |
| keyboard_send((REG8)(keycode + 0x80)); | |
| keystat.ref[keycode] = NKEYREF_NC; | |
| } | |
| } | |
| if (keystat.ref[keycode] == NKEYREF_NC) { | |
| keyboard_send(keycode); | |
| } | |
| #else | |
| if ((keystat.ref[keycode] == NKEYREF_NC) || | if ((keystat.ref[keycode] == NKEYREF_NC) || |
| (!(kbexflag[keycode] & KBEX_NONREP))) { | (!(kbexflag[keycode] & KBEX_NONREP))) { |
| keyboard_send(keycode); | keyboard_send(keycode); |
| } | } |
| #endif | |
| keystat.ref[keycode] = ref; | keystat.ref[keycode] = ref; |
| } | } |
| else { | else { |