Orbiter Lua Script interface
vessel:send_bufferedkey (keycode) Sends a keycode message to the vessel.
The key codes correspond to the values for the OAPI
KEYxxx constants defined in OrbiterAPI.h. A convenient way to pick a keycode is via the
ktable table. For example, ktable.A has value 0x1E, which represents the keycode for A. Only a subset of keycodes is currently defined in the ktable table.
The return value is 1 if the vessel could process the key message, or 0 otherwise.
Parameters:
- keycode int key identifier
Returns:
- int processing flag (1=key was processed, 0=key was ignored