Keyboard driver structure.
Source position: keybrdh.inc line 218
type TKeyboardDriver = record  | 
||
InitDriver: procedure;  | 
  | 
Handler called when initializing keyboard driver.  | 
DoneDriver: procedure;  | 
  | 
Handler called when unloading keyboard driver.  | 
GetKeyEvent: function: TKeyEvent;  | 
  | 
Blocking handler called when a key event is requested.  | 
PollKeyEvent: function: TKeyEvent;  | 
  | 
Non blocking handler when checking for presence of a key event.  | 
GetShiftState: function: Byte;  | 
  | 
Handler called to request the current shift state.  | 
TranslateKeyEvent: function(  | 
  | 
Translate key event to a suitable ASCII representation.  | 
KeyEvent: TKeyEvent  | 
||
):TKeyEvent;  | 
||
TranslateKeyEventUniCode: function(  | 
  | 
Translate key event to a suitable Unicode representation.  | 
KeyEvent: TKeyEvent  | 
||
):TKeyEvent;  | 
||
GetEnhancedKeyEvent: function: TEnhancedKeyEvent;  | 
||
PollEnhancedKeyEvent: function: TEnhancedKeyEvent;  | 
||
end;  | 
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
  | 
Set a new keyboard driver.  | 
|
  | 
Writing a keyboard driver.  |