MercuryInputManager Class Reference

Input Manager (accessable via INPUTMAN). More...

#include <MercuryInput.h>

Collaboration diagram for MercuryInputManager:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MercuryInputManager ()
 ~MercuryInputManager ()
void Update ()
 [internal] Update
bool IsButtonDown (int DeviceNumber, int ButtonNumber)
 Determine if a low-level button is pressed currently.
bool IsButtonDown (int code)
 Determine if a button is pressed (by high level code).
InputEvent PopLastEvent ()
 [internal] Get last input event
bool GetCursorPosition (int &x, int &y)
 Get the cursor position (and return it's X and Y pos by reference).

Private Attributes

MVector< InputDevice * > m_vDevices

Detailed Description

Input Manager (accessable via INPUTMAN).

Definition at line 80 of file MercuryInput.h.


Constructor & Destructor Documentation

MercuryInputManager::MercuryInputManager (  ) 

Definition at line 93 of file MercuryInput.cpp.

MercuryInputManager::~MercuryInputManager (  )  [inline]

Definition at line 84 of file MercuryInput.h.


Member Function Documentation

void MercuryInputManager::Update (  ) 

[internal] Update

Definition at line 118 of file MercuryInput.cpp.

bool MercuryInputManager::IsButtonDown ( int  DeviceNumber,
int  ButtonNumber 
) [inline]

Determine if a low-level button is pressed currently.

Definition at line 90 of file MercuryInput.h.

bool MercuryInputManager::IsButtonDown ( int  code  ) 

Determine if a button is pressed (by high level code).

Definition at line 147 of file MercuryInput.cpp.

InputEvent MercuryInputManager::PopLastEvent (  ) 

[internal] Get last input event

Definition at line 158 of file MercuryInput.cpp.

bool MercuryInputManager::GetCursorPosition ( int &  x,
int &  y 
) [inline]

Get the cursor position (and return it's X and Y pos by reference).

Definition at line 100 of file MercuryInput.h.


Member Data Documentation

MVector< InputDevice * > MercuryInputManager::m_vDevices [private]

Definition at line 106 of file MercuryInput.h.


The documentation for this class was generated from the following files:
Hosted by SourceForge.net Logo