DoopelPonger
Public Member Functions | Public Attributes | List of all members
SinglePressInputChecker Class Reference

Inputchecker to notify the trigger when the key first gets pressed down. More...

Inheritance diagram for SinglePressInputChecker:
Inheritance graph
[legend]
Collaboration diagram for SinglePressInputChecker:
Collaboration graph
[legend]

Public Member Functions

 SinglePressInputChecker (InputManager.InputTriggerOption inputTriggerOption, InputActionMapper.Action action, bool triggeredOnUpdate, InputManager.ButtonPressTrigger trigger, string tag)
 
override InputCheckerAction GetCheckerAction ()
 Method called every Update tick to see if the inputTriggerOption should be actived. More...
 
override string GetIdentifierString ()
 
- Public Member Functions inherited from InputChecker
 InputChecker (InputManager.InputTriggerOption inputTriggerOption, string tag)
 

Public Attributes

readonly InputManager.ButtonPressTrigger trigger
 
- Public Attributes inherited from InputChecker
readonly string tag
 
readonly InputManager.InputTriggerOption inputTriggerOption
 

Additional Inherited Members

- Protected Attributes inherited from InputChecker
InputActionMapper inputActionMapper
 

Detailed Description

Inputchecker to notify the trigger when the key first gets pressed down.

Constructor & Destructor Documentation

◆ SinglePressInputChecker()

SinglePressInputChecker.SinglePressInputChecker ( InputManager.InputTriggerOption  inputTriggerOption,
InputActionMapper.Action  action,
bool  triggeredOnUpdate,
InputManager.ButtonPressTrigger  trigger,
string  tag 
)

Member Function Documentation

◆ GetCheckerAction()

override InputCheckerAction SinglePressInputChecker.GetCheckerAction ( )
virtual

Method called every Update tick to see if the inputTriggerOption should be actived.

Returns
A function to call in the next FixedUpdate.

Implements InputChecker.

◆ GetIdentifierString()

override string SinglePressInputChecker.GetIdentifierString ( )
virtual
Returns
Unique identifier for the type of input the child object is checking.

Implements InputChecker.

Member Data Documentation

◆ trigger

readonly InputManager.ButtonPressTrigger SinglePressInputChecker.trigger

Callback to notify of when the key is pressed.


The documentation for this class was generated from the following file: