GM: Keyboard key codes

From GMpedia.org Wiki

Jump to: navigation, search

vk_nokey

representing that no key is pressed

vk_anykey

representing that any key is pressed

vk_left

left arrow key

vk_right

right arrow key

vk_up

up arrow key

vk_down

down arrow key

vk_enter

enter key

vk_escape

escape key

vk_space

space key

vk_shift

shift key

vk_control

control key

vk_alt

alt key

vk_backspace

backspace key

vk_tab

tab key

vk_home

home key

vk_end

end key

vk_delete

delete key

vk_insert

insert key

vk_pageup

pageup key

vk_pagedown

pagedown key

vk_pause

pause/break key

vk_printscreen

printscreen/sysrq key

vk_f1 ... vk_f12

function keys F1 to F12

vk_numpad0

...

vk_numpad9

number keys on the numeric keypad

vk_multiply

multiply key on the numeric keypad

vk_divide

divide key on the numeric keypad

vk_add

add key on the numeric keypad

vk_subtract

subtract key on the numeric keypad

vk_decimal

decimal dot keys on the numeric keypad

vk_lshift left shift key keyboard_check_direct only
vk_lcontrol left control key keyboard_check_direct only
vk_lalt left alt key keyboard_check_direct only
vk_rshift right shift key keyboard_check_direct only
vk_rcontrol right control key keyboard_check_direct only
vk_ralt right alt key keyboard_check_direct only
This article was originally found at the Game Maker Knowledge Base, contributed by nickydude.
See the talk page for details
Personal tools