a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
 Devices:
 keyboard.device
  CMD_CLEAR
  KBD_ADDRESETHANDLER
  KBD_READEVENT
  KBD_READMATRIX
  KBD_REMRESETHANDLER
  KBD_RESETHANDLERDONE
Include
GuruMeditation
Docs » Autodocs » keyboard.device » KBD_READEVENT

NAME

	KBD_READEVENT -- Return the next keyboard event.

FUNCTION

	Read raw keyboard events from the keyboard and put them in the
data area of the iORequest. If there are no pending keyboard
events, this command will not be satisfied, but if there are
some events, but not as many as can fill IO_LENGTH, the
request will be satisfied with those currently available.
IO REQUEST
io_Message mn_ReplyPort set if quick I/O is not possible
io_Device preset by the call to OpenDevice
io_Command KBD_READEVENT
io_Flags IOB_QUICK set if quick I/O is possible
io_Length the size of the io_Data area in bytes: there
are sizeof(inputEvent) bytes per input event.
io_Data a buffer area to fill with input events. The
fields of the input event are:
ie_NextEvent
links the events returned
ie_Class
is IECLASS_RAWKEY
ie_Code
contains the next key up/down reports
ie_Qualifier
only the shift and numeric pad bits are set
ie_SubClass, ie_X, ie_Y, ie_TimeStamp
are not used, and set to zero

RESULT

	This function sets the error field in the IORequest, and fills
the IORequest with the next keyboard events (but not partial
events).

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

Horizon

HZ
RBS
SPB
DJ

Comments:

$VER: d0.se 1.14 Copyright © 2011-2020 Tobias Geijersson support at d0 dot se