Atlantis.KeyboardComponent Class
A keyboard component that be used with KeyboardHelper to provide some interesting keyboars states as pressed, justPressed, etc.
Constructor
Item Index
Methods
@setEnabled
-
enabled
Gets the status of the component.
Parameters:
-
enabled
BooleanSets to true to enable
control
-
key
Parameters:
-
key
Atlantis.Keys | Number
Returns:
Return true if pressed, otherwise return false.
down
-
key
Parameters:
-
key
Atlantis.Keys | Number
Returns:
Return true if pressed, otherwise return false.
enter
-
key
Parameters:
-
key
Atlantis.Keys | Number
Returns:
Return true if pressed, otherwise return false.
escape
-
key
Parameters:
-
key
Atlantis.Keys | Number
Returns:
Return true if pressed, otherwise return false.
initialize
()
Initialize the logic of the component.
isEnabled
()
Boolean
Gets the status of the component.
Returns:
The status of the component.
justPressed
-
key
Parameters:
-
key
Atlantis.Keys | Number
Returns:
Return true if pressed, otherwise return false.
justReleased
-
key
Parameters:
-
key
Atlantis.Keys | Number
Returns:
Return true if pressed, otherwise return false.
left
-
key
Parameters:
-
key
Atlantis.Keys | Number
Returns:
Return true if pressed, otherwise return false.
pressed
-
key
Parameters:
-
key
Atlantis.Keys | Number
Returns:
Return true if pressed, otherwise return false.
released
-
key
Parameters:
-
key
Atlantis.Keys | Number
Returns:
Return true if pressed, otherwise return false.
right
-
key
Parameters:
-
key
Atlantis.Keys | Number
Returns:
Return true if pressed, otherwise return false.
shift
-
key
Parameters:
-
key
Atlantis.Keys | Number
Returns:
Return true if pressed, otherwise return false.
space
-
key
Parameters:
-
key
Atlantis.Keys | Number
Returns:
Return true if pressed, otherwise return false.
tab
-
key
Parameters:
-
key
Atlantis.Keys | Number
Returns:
Return true if pressed, otherwise return false.
up
-
key
Parameters:
-
key
Atlantis.Keys | Number
Returns:
Return true if pressed, otherwise return false.