Keyboard Input

Keyboard inputs

The PaC-DK engine can react to keyboard inputs at any time. You can react to the state of all alphanummeric keys and most of the special keys. Keyboard inputs can be used to control minigames or define hotkeys for saving ect.

To be able to check for keyboard inputs you will need a looping script like a function or the mainscript.

if_keydown (F1) { subroom (helpwindow) }

This would open a subroom that contains some helping facts for the player.