inputManager

Manages inputs for keyboard, mouse, and gamepad

virtuosity.inputManager

Objects

Methods


Objects

keyboard

manages input from the keyboard. Supported keys are:

"A"
"B"
"C"
"D"
"E"
"F"
"G"
"H"
"I"
"J"
"K"
"L"
"M"
"N"
"O"
"P"
"Q"
"R"
"S"
"T"
"U"
"V"
"W"
"X"
"Y"
"Z"
"ZERO"
"ONE"
"TWO"
"THREE"
"FOUR"
"FIVE"
"SIX"
"SEVEN"
"EIGHT"
"NINE"
"NUMPAD_0"
"NUMPAD_1"
"NUMPAD_2"
"NUMPAD_3"
"NUMPAD_4"
"NUMPAD_5"
"NUMPAD_6"
"NUMPAD_7"
"NUMPAD_8"
"NUMPAD_9"
"NUMPAD_MULTIPLY"
"NUMPAD_ADD"
"NUMPAD_ENTER"
"NUMPAD_SUBTRACT"
"NUMPAD_DECIMAL"
"NUMPAD_DIVIDE"
"F1"
"F2"
"F3"
"F4"
"F5"
"F6"
"F7"
"F8"
"F9"
"F10"
"F11"
"F12"
"F13"
"F14"
"F15"
"COLON"
"EQUALS"
"COMMA"
"UNDERSCORE"
"PERIOD"
"QUESTION_MARK"
"TILDE"
"OPEN_BRACKET"
"BACKWARD_SLASH"
"CLOSED_BRACKET"
"QUOTES"
"BACKSPACE"
"TAB"
"CLEAR"
"ENTER"
"SHIFT"
"CONTROL"
"ALT"
"CAPS_LOCK"
"ESCAPE"
"SPACE"
"PAGE_UP"
"PAGE_DOWN"
"END"
"HOME"
"LEFT"
"UP"
"RIGHT"
"DOWN"
"PLUS"
"MINUS"
"INSERT"
"DELETE"
"HELP"
"NUM_LOCK"

virtuosity.inputManager.keyboard

mouse

manages input from the mouse

virtuosity.inputManager.mouse

gamepad

manages input from up to gamepad 4

virtuosity.inputManager.gamepad


Methods

enable

enables inputManager

virtuosity.inputManager.enable();

disable

disables inputManager

virtuosity.inputManager.disable();