CryEngine.ActionHandler

CryEngine.ActionHandler

ActionHandler is the C# wrapper for the ActionMaps. Using this you can have a config-file that defines your input instead of all the input being hard coded. More...

Inherits IActionListener.

Public Member Functions

ActionHandler (string actionMapPath, string actionMapName)
Create a new ActionHandler that can receive the input as described in the config-file at actionMapPath. This ActionHandler will use the ActionMap specified by actionMapName. More...
override void AfterAction ()
Called after an action has been invoked. More...
override void OnAction (CCryName action, int activationMode, float value)
Called when an action is invoked. More...
override void Dispose ()
Clear the handlers and dispose of this instance. More...
void AddHandler (string action, Action< string, InputState, float > handler)
Add a handler for an action to this ActionHandler. More...
void RemoveHandler (string action)
Remove a handler from this ActionHandler. More...

Detailed Description

ActionHandler is the C# wrapper for the ActionMaps. Using this you can have a config-file that defines your input instead of all the input being hard coded.

Constructor & Destructor Documentation

◆ ActionHandler()

CryEngine.ActionHandler.ActionHandler ( string actionMapPath,
string actionMapName
)
inline

Create a new ActionHandler that can receive the input as described in the config-file at actionMapPath. This ActionHandler will use the ActionMap specified by actionMapName.

Parameters
actionMapPath
actionMapName

Member Function Documentation

◆ AddHandler()

void CryEngine.ActionHandler.AddHandler ( string action,
Action< string, InputState, float > handler
)
inline

Add a handler for an action to this ActionHandler.

Parameters
action
handler

◆ AfterAction()

override void CryEngine.ActionHandler.AfterAction ( )
inline

Called after an action has been invoked.

◆ Dispose()

override void CryEngine.ActionHandler.Dispose ( )
inline

Clear the handlers and dispose of this instance.

◆ OnAction()

override void CryEngine.ActionHandler.OnAction ( CCryName action,
int activationMode,
float value
)
inline

Called when an action is invoked.

Parameters
action
activationMode
value

◆ RemoveHandler()

void CryEngine.ActionHandler.RemoveHandler ( string action)
inline

Remove a handler from this ActionHandler.

Parameters
action