◆ Update()
void hpl::cInput::Update |
( |
float |
afTimeStep | ) |
|
|
virtual |
◆ AddAction()
void hpl::cInput::AddAction |
( |
iAction * |
apAction | ) |
|
Add a new action.
- Parameters
-
*apAction | The action to add. |
◆ IsTriggerd()
bool hpl::cInput::IsTriggerd |
( |
tString |
asName | ) |
|
Check if an action is triggered.
- Parameters
-
- Returns
◆ WasTriggerd()
bool hpl::cInput::WasTriggerd |
( |
tString |
asName | ) |
|
- Parameters
-
asName | name of the action. |
- Returns
◆ BecameTriggerd()
bool hpl::cInput::BecameTriggerd |
( |
tString |
asName | ) |
|
- Parameters
-
asName | name of the action. |
- Returns
◆ DoubleTriggerd()
bool hpl::cInput::DoubleTriggerd |
( |
tString |
asName, |
|
|
float |
afLimit |
|
) |
| |
- Parameters
-
asName | name of the action. |
- Returns
◆ GetKeyboard()
- Returns
- currently used keyboard
◆ GetMouse()
Mouse* hpl::cInput::GetMouse |
( |
| ) |
|
- Returns
- currently used mouse
◆ GetAction()
Get action from map.
- Parameters
-
- Returns
- Pointer to action, if not found NULL.
◆ DestroyAction()
void hpl::cInput::DestroyAction |
( |
tString |
asName | ) |
|
Destroys an action if it exists.
- Parameters
-
◆ CheckForInput()
bool hpl::cInput::CheckForInput |
( |
| ) |
|
Checks if any input is given.
- Returns
- true if any input is given, else false.
◆ InputToAction()
Creates an action from the latest input made. Any action with the same name is destroyed.
- Parameters
-
&asName | Name of action be be created. |
- Returns
- NULL if no input was given.
The documentation for this class was generated from the following file: