1
0
Fork 0

Some case entries in port 64 for active/deactivate keyboard commands.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@553
This commit is contained in:
Sjoerd van der Berg 2002-11-30 12:32:07 +00:00
parent e4d34f171d
commit 406c78e2cc

View file

@ -48,6 +48,7 @@ struct KeyBlock {
KeyCommands command;
bool read_active;
bool enabled;
bool active;
};
static KeyBlock keyb;
@ -151,7 +152,12 @@ static void write_p61(Bit32u port,Bit8u val) {
static void write_p64(Bit32u port,Bit8u val) {
switch (val) {
case 0:
case 0xad: /* Activate keyboard */
keyb.active=true;
break;
case 0xae: /* Deactivate keyboard */
keyb.active=false;
break;
default:
LOG_DEBUG("Port 64 write with val %d",val);
break;