Planeshift
|
#include <csutil/hash.h>
#include <csutil/csstring.h>
#include <iutil/eventnames.h>
#include "psmovement.h"
Go to the source code of this file.
Classes | |
class | psCharController |
Manages all control and movement related activities. More... | |
struct | psControl |
Defines a generic button trigger. More... | |
class | psControlManager |
Manages button functions and triggers. More... | |
class | psTriggerHandler |
Handles functions for each trigger. More... | |
Defines | |
#define | PS_MODS_MASK CSMASK_ALLSHIFTS |
Mask which may be used to convert CS generated modifier bits to ones used here. | |
Functions | |
csString | ComboToString (psControl::Device device, uint button, uint32 mods) |
Returns a string of the form "mods+button". | |
csString | GetDisplayName (const char *name) |
Resolves the custom name for a trigger (shortcut's name, or removes "(sec)" qualifiers) | |
uint32 | GetPSKeyMods (const iEvent *event) |
Function which is used to extract just the modifier bits we use from a CS event. | |
uint32 | GetPSMouseMods (const iEvent *event) |
#define PS_MODS_MASK CSMASK_ALLSHIFTS |
Mask which may be used to convert CS generated modifier bits to ones used here.
We use only shift, alt, and ctrl. The full CS mods also contain caps lock, num lock, scroll lock, etc. which we do not want to affect button mappings.
Definition at line 107 of file pscharcontrol.h.
csString ComboToString | ( | psControl::Device | device, |
uint | button, | ||
uint32 | mods | ||
) |
Returns a string of the form "mods+button".
csString GetDisplayName | ( | const char * | name | ) |
Resolves the custom name for a trigger (shortcut's name, or removes "(sec)" qualifiers)
uint32 GetPSKeyMods | ( | const iEvent * | event | ) |
Function which is used to extract just the modifier bits we use from a CS event.
We use only shift, alt, and ctrl. The full CS mods also contain caps lock, num lock, scroll lock, etc. which we do not want to affect button mappings.
uint32 GetPSMouseMods | ( | const iEvent * | event | ) |