Skip to content

TKeyboardDriver

Keyboard driver structure.

Declaration

Source position: keybrdh.inc line 218

type
  TKeyboardDriver = record
    InitDriver:  = procedure;
    DoneDriver:  = procedure;
    GetKeyEvent:  = function : TKeyEvent;
    PollKeyEvent:  = function : TKeyEvent;
    GetShiftState:  = function : Byte;
    TranslateKeyEvent:  = function(KeyEvent: TKeyEvent) : TKeyEvent;
    TranslateKeyEventUniCode:  = function(KeyEvent: TKeyEvent) : TKeyEvent;
    GetEnhancedKeyEvent:  = function : TEnhancedKeyEvent;
    PollEnhancedKeyEvent:  = function : TEnhancedKeyEvent;
  end;

Description

The TKeyboardDriver record can be used to install a custom keyboard driver with the SetKeyboardDriver function.

The various fields correspond to the different functions of the keyboard unit interface. For more information about this record see kbddriver

See also

Name Description
SetKeyboardDriver Set a new keyboard driver.
kbddriver Writing a keyboard driver.