Feel 5.9.1
The best way to improve your game's feel and make it extra juicy
Loading...
Searching...
No Matches
MoreMountains.Tools.MMInputExecutionBinding Class Reference

A class used to store MMInputExecution bindings, associating a target keycode to UnityEvents. More...

Public Member Functions

virtual void ProcessInput ()
 Checks for input and invokes events if needed.

Public Attributes

KeyCode TargetKey = KeyCode.Space
 the key the user needs to press to trigger events
UnityEvent OnKeyDown
 the event to trigger when the key is pressed down
UnityEvent OnKey
 the event to trigger every frame if the key is being pressed
UnityEvent OnKeyUp
 the event to trigger when the key is released

Detailed Description

A class used to store MMInputExecution bindings, associating a target keycode to UnityEvents.

Member Function Documentation

◆ ProcessInput()

virtual void MoreMountains.Tools.MMInputExecutionBinding.ProcessInput ( )
virtual

Checks for input and invokes events if needed.

Member Data Documentation

◆ OnKey

UnityEvent MoreMountains.Tools.MMInputExecutionBinding.OnKey

the event to trigger every frame if the key is being pressed

◆ OnKeyDown

UnityEvent MoreMountains.Tools.MMInputExecutionBinding.OnKeyDown

the event to trigger when the key is pressed down

◆ OnKeyUp

UnityEvent MoreMountains.Tools.MMInputExecutionBinding.OnKeyUp

the event to trigger when the key is released

◆ TargetKey

KeyCode MoreMountains.Tools.MMInputExecutionBinding.TargetKey = KeyCode.Space

the key the user needs to press to trigger events


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