Forums
This is the online documentation for Colossus Entertainments Pixie Game Engine

InputManager Class Reference
[Input]

Inheritance diagram for InputManager:

System

List of all members.


Detailed Description

Author:
Mattias Gustavsson

Definition at line 25 of file InputManager.h.


Public Member Functions

 SYSTEM_IMPLEMENTATION (InputManager)
 InputManager ()
void Initialize ()
void Start ()
void Stop ()
void Terminate ()
void Update ()
int GetCursorX (int activeWidth=-1, int activeHeight=-1)
int GetCursorY (int activeWidth=-1, int activeHeight=-1)
bool IsKeyDown (KeyCode key)
bool WasKeyPressed (KeyCode key)
bool WasKeyReleased (KeyCode key)
bool IsAnyKeyDown ()
bool WasAnyKeyPressed ()
bool WasAnyKeyReleased ()
bool IsCharDown (unsigned char ascii)
bool WasCharPressed (unsigned char ascii)
bool WasCharReleased (unsigned char ascii)
int GetCharacterCount ()
char GetCharacter (int index)
void ClearCharacters ()

Constructor & Destructor Documentation

InputManager::InputManager (  ) 

Definition at line 16 of file InputManager.cpp.


Member Function Documentation

InputManager::SYSTEM_IMPLEMENTATION ( InputManager   ) 

void InputManager::Initialize (  )  [virtual]

Reimplemented from System.

Definition at line 24 of file InputManager.cpp.

void InputManager::Start (  )  [virtual]

Reimplemented from System.

Definition at line 31 of file InputManager.cpp.

void InputManager::Stop (  )  [virtual]

Reimplemented from System.

Definition at line 52 of file InputManager.cpp.

void InputManager::Terminate (  )  [virtual]

Reimplemented from System.

Definition at line 59 of file InputManager.cpp.

void InputManager::Update (  ) 

Definition at line 67 of file InputManager.cpp.

int InputManager::GetCursorX ( int  activeWidth = -1,
int  activeHeight = -1 
)

Definition at line 108 of file InputManager.cpp.

int InputManager::GetCursorY ( int  activeWidth = -1,
int  activeHeight = -1 
)

Definition at line 141 of file InputManager.cpp.

bool InputManager::IsKeyDown ( KeyCode  key  ) 

Definition at line 174 of file InputManager.cpp.

bool InputManager::WasKeyPressed ( KeyCode  key  ) 

Definition at line 183 of file InputManager.cpp.

bool InputManager::WasKeyReleased ( KeyCode  key  ) 

Definition at line 192 of file InputManager.cpp.

bool InputManager::IsAnyKeyDown (  ) 

Definition at line 201 of file InputManager.cpp.

bool InputManager::WasAnyKeyPressed (  ) 

Definition at line 217 of file InputManager.cpp.

bool InputManager::WasAnyKeyReleased (  ) 

Definition at line 236 of file InputManager.cpp.

bool InputManager::IsCharDown ( unsigned char  ascii  ) 

Definition at line 254 of file InputManager.cpp.

bool InputManager::WasCharPressed ( unsigned char  ascii  ) 

Definition at line 262 of file InputManager.cpp.

bool InputManager::WasCharReleased ( unsigned char  ascii  ) 

Definition at line 270 of file InputManager.cpp.

int InputManager::GetCharacterCount (  ) 

Definition at line 278 of file InputManager.cpp.

char InputManager::GetCharacter ( int  index  ) 

Definition at line 286 of file InputManager.cpp.

void InputManager::ClearCharacters (  ) 

Definition at line 294 of file InputManager.cpp.