IVirtualButton Interface
Namespace: Stride.InputAssembly: Stride.Input.dll
Interface IVirtualButton
public interface IVirtualButton
              | Name | Description | |
|---|---|---|
| Methods | ||
| GetValue(InputManager) | Gets the value associated with this virtual button from an input manager.  | 
                          |
| IsDown(InputManager) | Indicate if the button is currently down  | 
                          |
| IsPressed(InputManager) | Indicate if the button has been pressed since the last frame  | 
                          |
| IsReleased(InputManager) | Indicate if the button has been released since the last frame  | 
                          |
Methods
GetValue(InputManager)
Gets the value associated with this virtual button from an input manager.
float GetValue(InputManager manager)
              Parameters
| Type | Name | Description | 
|---|---|---|
| InputManager | manager | The manager.  | 
                  
Returns
| Type | Description | 
|---|---|
| System.Single | System.Single.  | 
                  
IsDown(InputManager)
Indicate if the button is currently down
bool IsDown(InputManager manager)
              Parameters
| Type | Name | Description | 
|---|---|---|
| InputManager | manager | The input manager  | 
                  
Returns
| Type | Description | 
|---|---|
| System.Boolean | 
IsPressed(InputManager)
Indicate if the button has been pressed since the last frame
bool IsPressed(InputManager manager)
              Parameters
| Type | Name | Description | 
|---|---|---|
| InputManager | manager | The input manager  | 
                  
Returns
| Type | Description | 
|---|---|
| System.Boolean | 
IsReleased(InputManager)
Indicate if the button has been released since the last frame
bool IsReleased(InputManager manager)
              Parameters
| Type | Name | Description | 
|---|---|---|
| InputManager | manager | The input manager  | 
                  
Returns
| Type | Description | 
|---|---|
| System.Boolean |