tInputRecord

LuaFAR 3

tInputRecord


The table has the following fields:

  EventType:         integer

  --if EventType is KEY_EVENT:
  KeyDown:          boolean
  RepeatCount:      integer
  VirtualKeyCode:   integer
  VirtualScanCode:  integer
  UnicodeChar:      string
  ControlKeyState:  integer

  --if EventType is MOUSE_EVENT:
  see tMouseEventRecord

  --if EventType is WINDOW_BUFFER_SIZE_EVENT:
  SizeX             integer
  SizeY             integer

  --if EventType is MENU_EVENT:
  CommandId         integer

  --if EventType is FOCUS_EVENT:
  SetFocus          boolean