EVT_scanCodesType
Declaration
typedef enum {
KB_padEnter =
0x60,
KB_padMinus =
0x4A,
KB_padPlus =
0x4E,
KB_padTimes =
0x37,
KB_padDivide =
0x61,
KB_padLeft =
0x62,
KB_padRight =
0x63,
KB_padUp =
0x64,
KB_padDown =
0x65,
KB_padInsert =
0x66,
KB_padDelete =
0x67,
KB_padHome =
0x68,
KB_padEnd =
0x69,
KB_padPageUp =
0x6A,
KB_padPageDown =
0x6B,
KB_padCenter =
0x4C,
KB_F1 =
0x3B,
KB_F2 =
0x3C,
KB_F3 =
0x3D,
KB_F4 =
0x3E,
KB_F5 =
0x3F,
KB_F6 =
0x40,
KB_F7 =
0x41,
KB_F8 =
0x42,
KB_F9 =
0x43,
KB_F10 =
0x44,
KB_F11 =
0x57,
KB_F12 =
0x58,
KB_left =
0x4B,
KB_right =
0x4D,
KB_up =
0x48,
KB_down =
0x50,
KB_insert =
0x52,
KB_delete =
0x53,
KB_home =
0x47,
KB_end =
0x4F,
KB_pageUp =
0x49,
KB_pageDown =
0x51,
KB_capsLock =
0x3A,
KB_numLock =
0x45,
KB_scrollLock =
0x46,
KB_leftShift =
0x2A,
KB_rightShift =
0x36,
KB_leftCtrl =
0x1D,
KB_rightCtrl =
0x6C,
KB_leftAlt =
0x38,
KB_rightAlt =
0x6D,
KB_leftWindows =
0x5B,
KB_rightWindows =
0x5C,
KB_menu =
0x5D,
KB_sysReq =
0x54,
KB_esc =
0x01,
KB_1 =
0x02,
KB_2 =
0x03,
KB_3 =
0x04,
KB_4 =
0x05,
KB_5 =
0x06,
KB_6 =
0x07,
KB_7 =
0x08,
KB_8 =
0x09,
KB_9 =
0x0A,
KB_0 =
0x0B,
KB_minus =
0x0C,
KB_equals =
0x0D,
KB_backSlash =
0x2B,
KB_backspace =
0x0E,
KB_tab =
0x0F,
KB_Q =
0x10,
KB_W =
0x11,
KB_E =
0x12,
KB_R =
0x13,
KB_T =
0x14,
KB_Y =
0x15,
KB_U =
0x16,
KB_I =
0x17,
KB_O =
0x18,
KB_P =
0x19,
KB_leftSquareBrace =
0x1A,
KB_rightSquareBrace = 0x1B,
KB_enter =
0x1C,
KB_A =
0x1E,
KB_S =
0x1F,
KB_D =
0x20,
KB_F =
0x21,
KB_G =
0x22,
KB_H =
0x23,
KB_J =
0x24,
KB_K =
0x25,
KB_L =
0x26,
KB_semicolon =
0x27,
KB_apostrophe =
0x28,
KB_Z =
0x2C,
KB_X =
0x2D,
KB_C =
0x2E,
KB_V =
0x2F,
KB_B =
0x30,
KB_N =
0x31,
KB_M =
0x32,
KB_comma =
0x33,
KB_period =
0x34,
KB_divide =
0x35,
KB_space =
0x39,
KB_tilde =
0x29
} EVT_scanCodesType
Prototype In
event.h
Description
Defines the set of scan codes reported by the event library functions in the message field. Use the EVT_scanCode macro to extract the code from the event structure. Note that the scan codes reported will be the same across all keyboards (assuming the placement of keys on a 101 key US keyboard), but the translated ASCII values may be different depending on the country code pages in use.
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 codes begin with scan code 0x60 and range up from there.
Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com