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:
parent
e4d34f171d
commit
406c78e2cc
1 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue