TABLE OF CONTENTS

console.device/ConsoleDeviceGeneral
console.device/CMDCD_AskKeyMap
console.device/CMDCD_SetKeyMap
console.device/CMDCD_AskDefaultKeyMap
console.device/CMDCD_SetDefaultKeyMap
console.device/CMDCD_InitStruct
console.device/CMDCD_Slide
console.device/pOS_RawKeyConvert
console.device/pOS_MapRawKey

 console.device/ConsoleDeviceGeneral

  STRUCTURES

  struct pOS_Device
  struct pOS_InputEvent
  struct pOS_ConsoleDevice
  struct pOS_KeyMap

  INCLUDES

  Device/Input.h
  Device/IEvent.h
  pExec/Types.h
  pExec/Device.h
  proto/pConsole2.h

  DESCRIPTION

 console.device/CMDCD_AskKeyMap (V_1)

  PROTOTYPE
    CMDCD_AskKeyMap

  FUNCTION
    Determination of the present KeyMap

  PARAMETER pOS_IOStdReq
    io_Message.mn_ReplyPort : Pointer to the Message-Port, that is to receive
                              the IO-Request after execution of the command.
    io_Device,
    io_Unit          : Pointer to Device and Unit; initialized
                       through pOS_OpenDevice().
    io_Command       : CDCMD_AskKeyMap

    io_Flags         : IOREQB_Quick, if Quick-IO is wanted
    io_Length        : Size of the pOS_KeyMap-Structure
    io_Data          : Pointer to the pOS_KeyMap-Structure, that is to 
                       receive the KeyMap-Data.

  REMARK
    The String io_Error has the Errorcode in the ReplyMsg 
    or 0 if everything is ok.

  SEE ALSO
    CMDCD_SetKeyMap, CMDCD_AskDefaultKeyMap

  AMIGA FUNCTION
    CD_ASKKEYMAP


 console.device/CMDCD_SetKeyMap (V_1)

  PROTOTYPE
    CMDCD_SetKeyMap

  FUNCTION
    Setting of the present KeyMap

  PARAMETER pOS_IOStdReq
    io_Message.mn_ReplyPort : Pointer to the Message-Port, that is to 
                              receive the IO-Request after Execution of the 
                              Command.
    io_Device,
    io_Unit          : Pointer to the Device and the Unit; initialized
                       through pOS_OpenDevice().
    io_Command       : CDCMD_AskKeyMap

    io_Flags         : IOREQB_Quick, if Quick-IO is wanted
    io_Length        : Size of the pOS_KeyMap-Structure
    io_Data          : Pointer to the pOS_KeyMap-Structure, that contains
                       the KeyMap-Data.

  REMARK
    The String io_Error contains the Errorcode in the ReplyMsg 
    or 0 if all is ok.

  SEE ALSO
    CMDCD_AksKeyMap, CMDCD_SetDefaultKeyMap

  AMIGA FUNCTION
    CD_SETKEYMAP


 console.device/CMDCD_AskDefaultKeyMap (V_1)

  PROTOTYPE
    CMDCD_AskDefaultKeyMap

  FUNCTION
    Determination of the present Preset-KeyMap

  PARAMETER pOS_IOStdReq
    io_Message.mn_ReplyPort : Pointer to the Message-Port, that is to
                              receive the IO-Request after Execution of the
                              Command.
    io_Device,
    io_Unit          : Pointer to the Device and the Unit; initialized
                       through pOS_OpenDevice().
    io_Command       : CDCMD_AskKeyMap

    io_Flags         : IOREQB_Quick, if Quick-IO is wanted
    io_Length        : Size of the pOS_KeyMap-Structure
    io_Data          : Pointer to the pOS_KeyMap-Structure, that is to 
                       receive the Data of the Preset-KeyMap.

  REMARK
    The String io_Error contains the Errorcode in the ReplyMsg
    or 0 if everything is ok.

  SEE ALSO
    CMDCD_SetDefaultKeyMap, CMDCD_AskKeyMap

  AMIGA FUNCTION
    CD_ASKDEFAULTKEYMAP


 console.device/CMDCD_SetDefaultKeyMap (V_1)

  PROTOTYPE
    CMDCD_SetDefaultKeyMap

  FUNCTION
    Setting of the present Preset-KeyMap

  PARAMETER pOS_IOStdReq
    io_Message.mn_ReplyPort : Pointer to the Message-Port, that is to
                              receive the IO-Request after Execution of the
                             Command.
    io_Device,
    io_Unit          : Pointer to the Device and the Unit; initialized
                       through pOS_OpenDevice().
    io_Command       : CDCMD_AskKeyMap

    io_Flags         : IOREQB_Quick, if Quick-IO is wanted
    io_Length        : Size of the pOS_KeyMap-Structure
    io_Data          : Pointer to the pOS_KeyMap-Structure, that is to
                       receive the Data of the Preset-KeyMap.

  REMARK
    The String io_Error contains the Errorcode in the ReplyMsg 
    or 0 if all is ok.

  SEE ALSO
    CMDCD_AskDefaultKeyMap, CMDCD_SetKeyMap

  AMIGA FUNCTION
    CD_SETDEFAULTKEYMAP


 console.device/CMDCD_InitStruct (V_1)

  PROTOTYPE
    CMDCD_InitStruct

  FUNCTION

  PARAMETER pOS_IOStdReq
    io_Message.mn_ReplyPort : Pointer to the Message-Port, that is to
                              receive the IO-Request after Execution of the 
                              Command.
    io_Device,
    io_Unit          : Pointer to the Device and the Unit; initialized
                       through pOS_OpenDevice().
    io_Command       : CDCMD_InitStruct


  SEE ALSO

  AMIGA FUNCTION


 console.device/CMDCD_Slide (V_1)

  PROTOTYPE
    CMDCD_Slide

  FUNCTION

  PARAMETER pOS_IOStdReq
    io_Message.mn_ReplyPort : Pointer to the Message-Port, that is to 
                              receive the IO-Request after Execution of the
                              Command.
    io_Device,
    io_Unit          : Pointer to the Device and the Unit; initialized
                       through pOS_OpenDevice().
    io_Command       : CDCMD_Slide


  SEE ALSO

  AMIGA FUNCTION


 console.device/pOS_RawKeyConvert (V_1)

   NAME
        pOS_RawKeyConvert -- Convert RawKey to ANSI

   SYNOPSIS
        res =pOS_RawKeyConvert(IE,buffer,bufSize);
        _R_D0                 _R_A0 _R_A1  _R_D0

        size_t pOS_RawKeyConvert(const pOS_InputEvent*,UBYTE*,size_t);

   FUNCTION

   INPUTS
        IE      - RawKey-Input Event
        buffer  - the Buffer to fill
        bufSize - maximum Byte-Length of 'buffer'

   RESULT
        Number of Characters in 'buffer'
        ~0 => an Error occured

   EXAMPLE

   SEE ALSO


 console.device/pOS_MapRawKey (V_1)

   NAME
        pOS_MapRawKey -- convert RawKey to ANSI

   SYNOPSIS
        res = pOS_MapRawKey(IE,buffer,bufSize,KeyMap);
        _R_D0              _R_A0 _R_A1 _R_D0   _R_A2

        size_t pOS_MapRawKey(const pOS_InputEvent*,UBYTE*,
                   size_t,const pOS_KeyMap*);

   FUNCTION

   INPUTS
        IE      - RawKey-Input Event
        buffer  - the Buffer to fill
        bufSize - maximum Byte-Length of 'buffer'
        KeyMap  - KeyMap or NULL

   RESULT
        Number of Characters in 'buffer'
        ~0 => an Error occured

   EXAMPLE

   SEE ALSO

  END

