Class Index | File Index

Classes


Class VENISON.GENERAL.InputManager

The InputManager handles keyboard input. Handling of mouse input is very game specific and it is much more efficient to just add mouse listeners on the specific elements that should be clickable.
Defined in: venison_engine.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
 
fnIsKeyDown(iKeyCode)
Call to check whether a key with a certain key code is being pressed down.
 
fnIsKeyPressed(iKeyCode)
Call to check whether a key with a certain key code was pressed this frame.
 
fnIsKeyReleased(iKeyCode)
Call to check whether a key with a certain key code was released this frame.
Class Detail
VENISON.GENERAL.InputManager()
Method Detail
{Boolean} fnIsKeyDown(iKeyCode)
Call to check whether a key with a certain key code is being pressed down.
Parameters:
{Number} iKeyCode
The key code of the query.
Returns:
{Boolean} true if the key is being pressed down, otherwise false.

{Boolean} fnIsKeyPressed(iKeyCode)
Call to check whether a key with a certain key code was pressed this frame.
Parameters:
{Number} iKeyCode
The key code of the query.
Returns:
{Boolean} true if the key was pressed this frame, otherwise false.

{Boolean} fnIsKeyReleased(iKeyCode)
Call to check whether a key with a certain key code was released this frame.
Parameters:
{Number} iKeyCode
The key code of the query.
Returns:
{Boolean} true if the key was released this frame, otherwise false.

Documentation generated by JsDoc Toolkit 2.4.0 on Thu May 05 2011 18:47:28 GMT+0200 (CEST)