EVT_scanCode

Macro to extract the keyboard scan code from a message.

Declaration

uchar EVT_scanCode(
    ulong message)

Prototype In

event.h

Parameters

message

Message to extract scan code from

 

Return Value

Keyboard scan code extracted from the message.

Description

Macro to extract the keyboard scan code from the message field of the event structure. You pass the message field to the macro as the parameter and the scan code is the result, for example:

event_t EVT.myEvent;
uchar   code;
code = EVT_scanCode(EVT.myEvent.message);

Note:    Scan codes in the event library are not really hardware scan codes, but rather virtual scan codes as generated by a low level keyboard interface driver. All virtual scan code values are defined by the EVT_scanCodesType enumeration, and will be identical across all supports OS'es and platforms.

See Also

EVT_asciiCode, EVT_repeatCount

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com