[Contents] [Index] [Help] [Retrace] [Browse <] [Browse >]

Command               Operation
-------               ---------
cmd_clear             clear the keyboard input buffer.  removes any key
                      transitions from the input buffer.

kbd_addresethandler   add a reset handler function to the list of
                      functions called  by the keyboard device to clean up
                      before a hard reset.

kbd_remresethandler   remove a previously added reset handler from the
                      list of functions called by the keyboard device to
                      clean up before a hard reset.

kbd_resethandlerdone  indicate that a handler has completed its job and
                      reset could possibly occur now.

kbd_readmatrix        read the state of every key in the keyboard.  tells
                      the up/down state of every key.

kbd_readevent         read one (or more) raw key event from the keyboard
                      device.


Exec Functions as Used in This Chapter
--------------------------------------
abortio()             abort a command to the keyboard device.

allocmem()            allocate a block of memory.

checkio()             return the status of an i/o request.

closedevice()         relinquish use of the keyboard device.

doio()                initiate a command and wait for it to complete
                      (synchronous request).

freemem()             free a block of previously allocated memory.

opendevice()          obtain use of the keyboard device.

sendio()              initiate a command and return immediately
                      (asynchronous request).

waitio()              wait for the completion of an asynchronous request.
                      When the request is complete the message will be
                      removed from reply port.


Exec Support Functions as Used in This Chapter
----------------------------------------------
createextio()         create an extended i/o request structure.  this
                      structure will be used to communicate commands to
                      the keyboard device.

createport()          create a signal message port for reply messages from
                      the keyboard device.  Exec will signal a task when a
                      message arrives at the port.

deleteextio()         delete an extended i/o request structure created by
                      createextio().

deleteport()          delete the message port created by createport().