Add support for Print Screen key and interrupt. The keypress allows Descent 1 and 2 ingame screenshot feature to be used, the keypress and interrupt allow the Horror Hotel (TSR text adventure) hotkey to work, and the compatible interrupt handler location fixes a game bug in The Forgotten Land.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3961
This commit is contained in:
parent
18f5c4c565
commit
26dd1635b5
5 changed files with 39 additions and 2 deletions
|
@ -339,7 +339,10 @@ void KEYBOARD_AddKey(KBD_KEYS keytype,bool pressed) {
|
|||
KEYBOARD_AddBuffer(69|(pressed?0:0x80));
|
||||
return;
|
||||
case KBD_printscreen:
|
||||
/* Not handled yet. But usuable in mapper for special events */
|
||||
KEYBOARD_AddBuffer(0xe0);
|
||||
KEYBOARD_AddBuffer(42|(pressed?0:0x80));
|
||||
KEYBOARD_AddBuffer(0xe0);
|
||||
KEYBOARD_AddBuffer(55|(pressed?0:0x80));
|
||||
return;
|
||||
default:
|
||||
E_Exit("Unsupported key press");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue