iPcCommandInput Struct Reference
Input propery class. More...
#include <propclass/input.h>
Public Member Functions | |
virtual void | Activate (bool activate=true)=0 |
Activates the input to get Commands. | |
virtual bool | Bind (const char *triggername, const char *command)=0 |
Binds a trigger to a command. | |
virtual float | CenteredToScreen (float centeredcoord, float axis=0)=0 |
Convert a coordinate from a value between -1 and 1 to screen-space. | |
virtual const char * | GetBind (const char *triggername) const =0 |
returns the command bind to a key | |
virtual bool | LoadConfig (const char *fname)=0 |
Loads a Config File binding triggers(for example keys) to commands. | |
virtual void | RemoveAllBinds ()=0 |
deletes all binds | |
virtual bool | RemoveBind (const char *triggername, const char *command)=0 |
deletes a bind, if triggername is 0 deletes all binds to the command | |
virtual void | ScreenCoordinates (bool screen=true)=0 |
Send screen coordinates instead of coordinates between -1 and 1 for axis movement messages. | |
virtual float | ScreenToCentered (float screencoord, float axis=0)=0 |
Convert a coordinate from screen-space to a value between -1 and 1. |
Detailed Description
Input propery class.This property class supports the following actions (add prefix 'cel.action.' to get the ID of the action and add prefix 'cel.parameter.' to get the ID of the parameter):
- Bind: parameters 'trigger' (string) and 'command' (string).
This property class can send out the following messages to the behaviour:
- pccommandinput_<key>0: key is unpressed
- pccommandinput_<key>1: key is pressed
- pccommandinput_<key>_: key is pressed and auto-repeating
- pccommandinput_<axis>: movement on the given axis
Definition at line 45 of file input.h.
Member Function Documentation
|
Activates the input to get Commands.
|
|
Binds a trigger to a command.
|
|
Convert a coordinate from a value between -1 and 1 to screen-space.
|
|
returns the command bind to a key
|
|
Loads a Config File binding triggers(for example keys) to commands.
|
|
deletes all binds
|
|
deletes a bind, if triggername is 0 deletes all binds to the command
|
|
Send screen coordinates instead of coordinates between -1 and 1 for axis movement messages.
|
|
Convert a coordinate from screen-space to a value between -1 and 1.
|
The documentation for this struct was generated from the following file:
- propclass/input.h
Generated for CEL: Crystal Entity Layer by doxygen 1.4.6