DIFF

Keyboard input API

Part of System

Enums

Values

KC_0
KC_1
KC_2
KC_3
KC_4
KC_5
KC_6
KC_7
KC_8
KC_9
KC_A
KC_ADD+ on numeric keypad
KC_APOSTROPHE
KC_APPSAppMenu key
KC_AT(NEC PC98)
KC_AX(Japan AX)
KC_B
KC_BACKbackspace
KC_BACKSLASH
KC_C
KC_CALCULATORCalculator
KC_CAPITAL
KC_COLON(NEC PC98)
KC_COMMA
KC_D
KC_DECIMAL. on numeric keypad
KC_DELETEDelete on arrow keypad
KC_DIVIDE/ on numeric keypad
KC_DOWNDownArrow on arrow keypad
KC_E
KC_ENDEnd on arrow keypad
KC_EQUALS
KC_ESCAPE
KC_F
KC_F1
KC_F10
KC_F11
KC_F12
KC_F2
KC_F3
KC_F4
KC_F5
KC_F6
KC_F7
KC_F8
KC_F9
KC_G
KC_GRAVEaccent grave
KC_H
KC_HOMEHome on arrow keypad
KC_I
KC_INSERTInsert on arrow keypad
KC_J
KC_K
KC_L
KC_LBRACKET
KC_LCONTROL
KC_LEFTLeftArrow on arrow keypad
KC_LMENUleft Alt
KC_LSHIFT
KC_LWINLeft Windows key
KC_M
KC_MEDIASELECT
KC_MEDIASTOPMedia Stop
KC_MINUS- on main keyboard
KC_MULTIPLY* on numeric keypad
KC_MUTEMute
KC_N
KC_NEXTPgDn on arrow keypad
KC_NEXTTRACKNext Track
KC_NUMLOCK
KC_NUMPAD0
KC_NUMPAD1
KC_NUMPAD2
KC_NUMPAD3
KC_NUMPAD4
KC_NUMPAD5
KC_NUMPAD6
KC_NUMPAD7
KC_NUMPAD8
KC_NUMPAD9
KC_NUMPADCOMMA, on numeric keypad (NEC PC98)
KC_NUMPADENTEREnter on numeric keypad
KC_NUMPADEQUALS= on numeric keypad (NEC PC98)
KC_O
KC_OEM_102< > | on UK/Germany keyboards
KC_P
KC_PAUSEPause
KC_PERIOD. on main keyboard
KC_PLAYPAUSEPlay / Pause
KC_POWERSystem Power
KC_PREVTRACKPrevious Track (DIKC_CIRCUMFLEX on Japanese keyboard)
KC_PRIORPgUp on arrow keypad
KC_Q
KC_R
KC_RBRACKET
KC_RCONTROL
KC_RETURNEnter on main keyboard
KC_RIGHTRightArrow on arrow keypad
KC_RMENUright Alt
KC_RSHIFT
KC_RWINRight Windows key
KC_S
KC_SCROLLScroll Lock
KC_SEMICOLON
KC_SLASH/ on main keyboard
KC_SLEEPSystem Sleep
KC_SPACE
KC_STOP(NEC PC98)
KC_SUBTRACT- on numeric keypad
KC_SYSRQ
KC_T
KC_TAB
KC_U
KC_UNDERLINE(NEC PC98)
KC_UNLABELED(J3100)
KC_UPUpArrow on arrow keypad
KC_V
KC_VOLUMEDOWNVolume -
KC_VOLUMEUPVolume +
KC_W
KC_WAKESystem Wake
KC_WEBHOMEWeb home
KC_X
KC_Y
KC_Z

Functions

proto native void ClearKey(KeyCode key)Clears the key state. Call this function if you want to overcome autorepeating in reporting key state. If called, the KeyState returns pressed only after the key is released and pressed again.more…
proto native int KeyState(KeyCode key)Gets key statemore…

Function Documentation

ClearKey

proto native void ClearKey(KeyCode key)

Clears the key state. Call this function if you want to overcome autorepeating in reporting key state. If called, the KeyState returns pressed only after the key is released and pressed again.