API Docs for: 0.0.2
Show:

Atlantis.KeyboardState Class

Module: Framework
Parent Module: Atlantis

Define a keyboard state.

Constructor

Atlantis.KeyboardState

()

Item Index

Methods

Methods

isKeyDown

(
  • button
)
Boolean

Determine if the key is pressed.

Parameters:

  • button Number

    The button to test.

Returns:

Boolean:

Return true if the key is pressed.

isKeyUp

(
  • button
)
Boolean

Determine if the key is pressed.

Parameters:

  • button Number

    The button to test.

Returns:

Boolean:

Return true if the key is released.