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
manager
InputManagerThe manager.
Returns
- float
System.Single.
IsDown(InputManager)
Indicate if the button is currently down
bool IsDown(InputManager manager)
Parameters
manager
InputManagerThe input manager
Returns
IsPressed(InputManager)
Indicate if the button has been pressed since the last frame
bool IsPressed(InputManager manager)
Parameters
manager
InputManagerThe input manager
Returns
IsReleased(InputManager)
Indicate if the button has been released since the last frame
bool IsReleased(InputManager manager)
Parameters
manager
InputManagerThe input manager