ScummVM API documentation
hpl::cInput Class Reference
Inheritance diagram for hpl::cInput:
hpl::iUpdateable

Public Member Functions

 cInput (LowLevelInput *apLowLevelInput)
 
void Update (float afTimeStep)
 
void AddAction (iAction *apAction)
 
bool IsTriggerd (tString asName)
 
bool WasTriggerd (tString asName)
 
bool BecameTriggerd (tString asName)
 
bool DoubleTriggerd (tString asName, float afLimit)
 
KeyboardGetKeyboard ()
 
MouseGetMouse ()
 
iActionGetAction (tString asName)
 
void DestroyAction (tString asName)
 
bool CheckForInput ()
 
iActionInputToAction (const tString &asName)
 
LowLevelInputGetLowLevel ()
 
- Public Member Functions inherited from hpl::iUpdateable
 iUpdateable (const tString &asName)
 
virtual void OnDraw ()
 
virtual void OnPostSceneDraw ()
 
virtual void OnPostGUIDraw ()
 
virtual void OnPostBufferSwap ()
 
virtual void OnStart ()
 
virtual void OnExit ()
 
virtual void Reset ()
 
const tStringGetName ()
 

Member Function Documentation

◆ Update()

void hpl::cInput::Update ( float  afTimeStep)
virtual

Updates the input, called by cGame

Reimplemented from hpl::iUpdateable.

◆ AddAction()

void hpl::cInput::AddAction ( iAction apAction)

Add a new action.

Parameters
*apActionThe action to add.

◆ IsTriggerd()

bool hpl::cInput::IsTriggerd ( tString  asName)

Check if an action is triggered.

Parameters
asName
Returns

◆ WasTriggerd()

bool hpl::cInput::WasTriggerd ( tString  asName)
Parameters
asNamename of the action.
Returns

◆ BecameTriggerd()

bool hpl::cInput::BecameTriggerd ( tString  asName)
Parameters
asNamename of the action.
Returns

◆ DoubleTriggerd()

bool hpl::cInput::DoubleTriggerd ( tString  asName,
float  afLimit 
)
Parameters
asNamename of the action.
Returns

◆ GetKeyboard()

Keyboard* hpl::cInput::GetKeyboard ( )
Returns
currently used keyboard

◆ GetMouse()

Mouse* hpl::cInput::GetMouse ( )
Returns
currently used mouse

◆ GetAction()

iAction* hpl::cInput::GetAction ( tString  asName)

Get action from map.

Parameters
asNamename of action.
Returns
Pointer to action, if not found NULL.

◆ DestroyAction()

void hpl::cInput::DestroyAction ( tString  asName)

Destroys an action if it exists.

Parameters
asName

◆ CheckForInput()

bool hpl::cInput::CheckForInput ( )

Checks if any input is given.

Returns
true if any input is given, else false.

◆ InputToAction()

iAction* hpl::cInput::InputToAction ( const tString asName)

Creates an action from the latest input made. Any action with the same name is destroyed.

Parameters
&asNameName of action be be created.
Returns
NULL if no input was given.

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