Torque2D Reference
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Static Public Member Functions | Static Protected Attributes | List of all members
Input Class Reference

#include <platformInput.h>

Static Public Member Functions

static void init ()
 
static void destroy ()
 
static bool enable ()
 
static void disable ()
 
static void activate ()
 
static void deactivate ()
 
static void reactivate ()
 
static void enableMouse ()
 
static void disableMouse ()
 
static void enableKeyboard ()
 
static void disableKeyboard ()
 
static bool activateKeyboard ()
 
static void deactivateKeyboard ()
 
static bool enableJoystick ()
 
static void disableJoystick ()
 
static void echoInputState ()
 
static U16 getAscii (U16 keyCode, KEY_STATE keyState)
 
static U16 getKeyCode (U16 asciiCode)
 
static bool isEnabled ()
 
static bool isActive ()
 
static bool isMouseEnabled ()
 
static bool isKeyboardEnabled ()
 
static void process ()
 
static void setCursorPos (S32 x, S32 y)
 
static void setCursorState (bool on)
 If True, turn on the platform's cursor. More...
 
static void setCursorShape (U32 cursorID)
 
static void pushCursor (S32 cursorID)
 Push a cursor shape using the Cursor Manager. More...
 
static void popCursor ()
 Pop the current cursor off of the Cursor Manager stack. More...
 
static void refreshCursor ()
 Refresh the current cursor's shape. More...
 
static U32 getDoubleClickTime ()
 
static S32 getDoubleClickWidth ()
 
static S32 getDoubleClickHeight ()
 
static InputManagergetManager ()
 Return InputManager Singleton. More...
 
static CursorManagergetCursorManager ()
 Return CursorManager Singleton. More...
 
static U8 getModifierKeys ()
 
static void setModifierKeys (U8 mod)
 

Static Protected Attributes

static InputManagersmManager
 Input Manager Singleton. More...
 
static CursorManagersmCursorManager
 Cursor Manager Singleton. More...
 
static bool smActive
 Is Input Active. More...
 
static bool smLastKeyboardActivated
 
static U8 smModifierKeys
 Current Modifier Keys Pressed. More...
 
static bool smLastMouseActivated
 
static bool smLastJoystickActivated
 

Member Function Documentation

static void activate ( )
static
static bool activateKeyboard ( )
static
static void deactivate ( )
static
static void deactivateKeyboard ( )
static
static void destroy ( )
static
static void disable ( )
static
static void disableJoystick ( )
static
static void disableKeyboard ( )
static
static void disableMouse ( )
static
static void echoInputState ( )
static
static bool enable ( )
static
static bool enableJoystick ( )
static
static void enableKeyboard ( )
static
static void enableMouse ( )
static
static U16 getAscii ( U16  keyCode,
KEY_STATE  keyState 
)
static
CursorManager * getCursorManager ( )
static

Return CursorManager Singleton.

static S32 getDoubleClickHeight ( )
static
static U32 getDoubleClickTime ( )
static
static S32 getDoubleClickWidth ( )
static
static U16 getKeyCode ( U16  asciiCode)
static
static InputManager* getManager ( )
static

Return InputManager Singleton.

static U8 getModifierKeys ( )
inlinestatic
static void init ( )
static
static bool isActive ( )
static
static bool isEnabled ( )
static
static bool isKeyboardEnabled ( )
static
static bool isMouseEnabled ( )
static
static void popCursor ( )
static

Pop the current cursor off of the Cursor Manager stack.

static void process ( )
static
static void pushCursor ( S32  cursorID)
static

Push a cursor shape using the Cursor Manager.

static void reactivate ( )
static
static void refreshCursor ( )
static

Refresh the current cursor's shape.

static void setCursorPos ( S32  x,
S32  y 
)
static
static void setCursorShape ( U32  cursorID)
static
static void setCursorState ( bool  on)
static

If True, turn on the platform's cursor.

static void setModifierKeys ( U8  mod)
inlinestatic

Member Data Documentation

bool smActive
staticprotected

Is Input Active.

CursorManager* smCursorManager
staticprotected

Cursor Manager Singleton.

bool smLastJoystickActivated
staticprotected
bool smLastKeyboardActivated
staticprotected
bool smLastMouseActivated
staticprotected
InputManager* smManager
staticprotected

Input Manager Singleton.

U8 smModifierKeys
staticprotected

Current Modifier Keys Pressed.


The documentation for this class was generated from the following files: