HGE Virtual Key Codes

HGE virtual-key codes are used with Input_GetKeyState, Input_GetKey and other input functions to specify one of the keyboard keys or mouse buttons. They are defined in hge.h header:

HGEK_LBUTTONLeft mouse button
HGEK_RBUTTONRight mouse button
HGEK_MBUTTONMiddle mouse button (wheel button)
 
HGEK_ESCAPEESCAPE key
HGEK_BACKSPACEBACKSPACE key
HGEK_TABTAB key
HGEK_ENTERAny of the two ENTER keys
HGEK_SPACESPACE key
 
HGEK_SHIFTAny of the two SHIFT keys
HGEK_CTRLAny of the two CTRL keys
HGEK_ALTAny of the two ALT keys
 
HGEK_LWINLeft WINDOWS key
HGEK_RWINRight WINDOWS key
HGEK_APPSAPPLICATIONS key
 
HGEK_PAUSEPAUSE key
HGEK_CAPSLOCKCAPS LOCK key
HGEK_NUMLOCKNUM LOCK key
HGEK_SCROLLLOCKSCROLL LOCK key
 
HGEK_PGUPPAGE UP key
HGEK_PGDNPAGE DOWN key
HGEK_HOMEHOME key
HGEK_ENDEND key
HGEK_INSERTINSERT key
HGEK_DELETEDELETE key
 
HGEK_LEFTLEFT ARROW key
HGEK_UPUP ARROW key
HGEK_RIGHTRIGHT ARROW key
HGEK_DOWNDOWN ARROW key
 
HGEK_0Main keyboard '0' key
HGEK_1Main keyboard '1' key
HGEK_2Main keyboard '2' key
HGEK_3Main keyboard '3' key
HGEK_4Main keyboard '4' key
HGEK_5Main keyboard '5' key
HGEK_6Main keyboard '6' key
HGEK_7Main keyboard '7' key
HGEK_8Main keyboard '8' key
HGEK_9Main keyboard '9' key
 
HGEK_A'A' key
HGEK_B'B' key
HGEK_C'C' key
HGEK_D'D' key
HGEK_E'E' key
HGEK_F'F' key
HGEK_G'G' key
HGEK_H'H' key
HGEK_I'I' key
HGEK_J'J' key
HGEK_K'K' key
HGEK_L'L' key
HGEK_M'M' key
HGEK_N'N' key
HGEK_O'O' key
HGEK_P'P' key
HGEK_Q'Q' key
HGEK_R'R' key
HGEK_S'S' key
HGEK_T'T' key
HGEK_U'U' key
HGEK_V'V' key
HGEK_W'W' key
HGEK_X'X' key
HGEK_Y'Y' key
HGEK_Z'Z' key
 
HGEK_GRAVEGrave accent (`)
HGEK_MINUSMain keyboard MINUS key (-)
HGEK_EQUALSMain keyboard EQUALS key (=)
HGEK_BACKSLASHBACK SLASH key (\)
HGEK_LBRACKETLeft square bracket ([)
HGEK_RBRACKETRight square bracket (])
HGEK_SEMICOLONSemicolon (;)
HGEK_APOSTROPHEApostrophe (')
HGEK_COMMAComma (,)
HGEK_PERIODMain keyboard PERIOD key (.)
HGEK_SLASHMain keyboard SLASH key (/)
 
HGEK_NUMPAD0Numeric keyboard '0' key
HGEK_NUMPAD1Numeric keyboard '1' key
HGEK_NUMPAD2Numeric keyboard '2' key
HGEK_NUMPAD3Numeric keyboard '3' key
HGEK_NUMPAD4Numeric keyboard '4' key
HGEK_NUMPAD5Numeric keyboard '5' key
HGEK_NUMPAD6Numeric keyboard '6' key
HGEK_NUMPAD7Numeric keyboard '7' key
HGEK_NUMPAD8Numeric keyboard '8' key
HGEK_NUMPAD9Numeric keyboard '9' key
 
HGEK_MULTIPLYNumeric keyboard MULTIPLY key (*)
HGEK_DIVIDENumeric keyboard DIVIDE key (/)
HGEK_ADDNumeric keyboard ADD key (+)
HGEK_SUBTRACTNumeric keyboard SUBTRACT key (-)
HGEK_DECIMALNumeric keyboard DECIMAL key (.)
 
HGEK_F1F1 key
HGEK_F2F2 key
HGEK_F3F3 key
HGEK_F4F4 key
HGEK_F5F5 key
HGEK_F6F6 key
HGEK_F7F7 key
HGEK_F8F8 key
HGEK_F9F9 key
HGEK_F10F10 key
HGEK_F11F11 key
HGEK_F12F12 key

Requirements

Header: hge.h

See also

Input_GetKeyName, Input_GetKeyState, Input_GetKey, Input_GetEvent