qc.Key

Description

Used for record information of key event.

Paramters

Paramter Type Description
game qc.Game Read only. game instance
keyCode number Key code, see : qc.Keyboard
isJustDown boolean Whether key is pressed in current frame
isJustUp boolean Whether key pop up in current frame
isDown boolean Whether key is pressed

Method

Method Description
setState Set the state of key directly
checkRepeat Check whether key is pressed repeatly