[Overview][Constants][Types][Procedures and functions] Reference for unit 'Keyboard' (#rtl)

InitKeyboard

Initialize the keyboard driver.

Declaration

Source position: keybrdh.inc line 135

procedure InitKeyboard;

Description

InitKeyboard initializes the keyboard driver. If the driver is already active, it does nothing. When the driver is initialized, it will do everything necessary to ensure the functioning of the keyboard, including allocating memory, initializing the terminal etc.

This function should be called once, before using any of the keyboard functions. When it is called, the DoneKeyboard function should also be called before exiting the program or changing the keyboard driver with SetKeyboardDriver.

For an example, see most other functions.

Errors

None.

See also

DoneKeyboard

  

Deactivate keyboard driver.

SetKeyboardDriver

  

Set a new keyboard driver.