Interface IVirtualButton
Interface IVirtualButton
public interface IVirtualButton
Methods
GetValue(InputManager)
Gets the value associated with this virtual button from an input manager.
float GetValue(InputManager manager)
Parameters
managerInputManagerThe manager.
Returns
- float
System.Single.
IsDown(InputManager)
Indicate if the button is currently down
bool IsDown(InputManager manager)
Parameters
managerInputManagerThe input manager
Returns
IsPressed(InputManager)
Indicate if the button has been pressed since the last frame
bool IsPressed(InputManager manager)
Parameters
managerInputManagerThe input manager
Returns
IsReleased(InputManager)
Indicate if the button has been released since the last frame
bool IsReleased(InputManager manager)
Parameters
managerInputManagerThe input manager