Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
192 lines (116 sloc) 3.57 KB

input

Overview

Inputs from keyboards and mouses.

Name Description Returns Parameters
getKey Get statue of holding down appointed ke boolen getKey(keyCode)
getKeyDown Get statue of pressing appointed key boolen getKeyDown(keyCode)
getKeyUp Get statue of releasing appointed key boolen getKeyUp(keyCode)
getMouseButton Get statue of pressing a mouse button boolen getMouseButton(MouseCode)
getMouseButtonDown Get statue of pressing a mouse button boolen getMouseButtonDown(MouseCode)
getMouseButtonUp Get statue of releasing the mouse button boolen getMouseButtonUp(MouseCode)

input.getKey

Check if user press and holds specific key.

Parameters

Name Description
keyCode KeyCode raw key code for keyboard events.

Example


input.getKeyDown

Check if user press specific key.

Parameters

Name Description
keyCode KeyCode raw key code for keyboard events.

Example

See getKey


input.getKeyUp

Check if user release specific key.

Parameters

Name Description
keyCode KeyCode raw key code for keyboard events.

Example

See getKey


input.getMouseButton

Check if user click and hold mouse button.

Parameters

Name Description
MouseCode int raw key code for mouse events.

Example

See getKey


input.getMouseButtonDown

Check if user click mouse button.

Parameters

Name Description
MouseCode int raw key code for mouse events.

Example

See getKey


input.getMouseButtonUp

Check if user release mouse button.

Parameters

Name Description
MouseCode int raw key code for mouse events.

Example

See getKey