Home  /  Autodocs  /  console.device

NAME

CD_SETKEYMAP
set the current key map structure for this console

FUNCTION

Set the current KeyMap structure used by this console unit to the structure pointed to by io_Data.

INPUTS

io_Message
mn_ReplyPort set if quick I/O is not possible

io_Device
Preset by the call to OpenDevice

io_Unit
Preset by the call to OpenDevice

io_Command
CD_SETKEYMAP

io_Flags
IOF_QUICK if quick I/O possible, else zero

io_Length
sizeof(*keyMap)

io_Data
struct KeyMap *keyMap pointer to a structure that describes the raw keycode to byte stream conversion.

RESULT

This function sets the io_Error field in the IOStdReq, and fills the current key map from the structure pointed to by io_Data.

SEE ALSO

exec/io.h, devices/keymap.h, devices/console.h