Manages all control and movement related activities.
More...
#include <pscharcontrol.h>
|
void | CancelMouseLook () |
|
void | CenterMouse (bool value) |
|
const psControl * | GetMappedTrigger (psControl::Device device, uint button, uint32 mods) |
| Get the triger mapped to a button, or NULL if none. More...
|
|
psMovementManager * | GetMovementManager () |
| Provides access to the movement system. More...
|
|
const psControl * | GetTrigger (const char *name) |
| Get a trigger by name. More...
|
|
bool | HandleEvent (iEvent &event) |
| Takes an event from psEngine, and dispatch it to either psControlManager or psMovementManager. More...
|
|
bool | Initialize () |
|
bool | IsReady () |
|
void | LoadDefaultKeys () |
| Resets key mappings to defaults. More...
|
|
void | LoadKeyFile () |
| loads the character-specific custom key mappings More...
|
|
bool | MatchTrigger (const char *name, psControl::Device device, uint button, uint32 mods) |
| Returns true if the trigger exists and is mapped to the specified combo. More...
|
|
| psCharController (iEventNameRegistry *eventname_reg) |
|
bool | RemapTrigger (const char *name, psControl::Device device, uint button, uint32 mods) |
| Changes the button set for a trigger. Returns false if does not exist or button is taken. More...
|
|
| ~psCharController () |
|
Manages all control and movement related activities.
Takes in events from psEngine and sends them to psControlManager and psMovementManager as needed. This serves as public access to the control system, and creates/loads/saves all control mappings.
Definition at line 229 of file pscharcontrol.h.
psCharController::psCharController |
( |
iEventNameRegistry * |
eventname_reg | ) |
|
psCharController::~psCharController |
( |
| ) |
|
void psCharController::CancelMouseLook |
( |
| ) |
|
void psCharController::CenterMouse |
( |
bool |
value | ) |
|
void psCharController::CreateKeys |
( |
| ) |
|
|
protected |
Get the triger mapped to a button, or NULL if none.
const psControl* psCharController::GetTrigger |
( |
const char * |
name | ) |
|
bool psCharController::HandleEvent |
( |
iEvent & |
event | ) |
|
bool psCharController::Initialize |
( |
| ) |
|
bool psCharController::IsReady |
( |
| ) |
|
void psCharController::LoadDefaultKeys |
( |
| ) |
|
Resets key mappings to defaults.
void psCharController::LoadKeyFile |
( |
| ) |
|
loads the character-specific custom key mappings
bool psCharController::LoadKeys |
( |
const char * |
file | ) |
|
|
protected |
Load all trigger mappings from file.
bool psCharController::MatchTrigger |
( |
const char * |
name, |
|
|
psControl::Device |
device, |
|
|
uint |
button, |
|
|
uint32 |
mods |
|
) |
| |
Returns true if the trigger exists and is mapped to the specified combo.
bool psCharController::RemapTrigger |
( |
const char * |
name, |
|
|
psControl::Device |
device, |
|
|
uint |
button, |
|
|
uint32 |
mods |
|
) |
| |
Changes the button set for a trigger. Returns false if does not exist or button is taken.
void psCharController::SaveKeys |
( |
| ) |
|
|
protected |
Save custom trigger mappings.
csEventID psCharController::event_mouseclick |
|
protected |
bool psCharController::ready |
|
protected |
The documentation for this class was generated from the following file: