MouseDeviceExtensions Class
Namespace: Stride.InputAssembly: Stride.Input.dll
System.Object →
MouseDeviceExtensions
Derived from MouseDeviceExtensions:
public static class MouseDeviceExtensions
Name | Description | |
---|---|---|
Methods | ||
IsButtonDown(IMouseDevice, MouseButton) | Determines whether the specified button is being pressed down |
|
IsButtonPressed(IMouseDevice, MouseButton) | Determines whether the specified mouse button is pressed since the previous update. |
|
IsButtonReleased(IMouseDevice, MouseButton) | Determines whether the specified mouse button is released. |
Methods
IsButtonDown(IMouseDevice, MouseButton)
Determines whether the specified button is being pressed down
public static bool IsButtonDown(this IMouseDevice mouseDevice, MouseButton mouseButton)
Parameters
Type | Name | Description |
---|---|---|
IMouseDevice | mouseDevice | The mnouse |
MouseButton | mouseButton | The mouse button |
Returns
Type | Description |
---|---|
System.Boolean |
|
IsButtonPressed(IMouseDevice, MouseButton)
Determines whether the specified mouse button is pressed since the previous update.
public static bool IsButtonPressed(this IMouseDevice mouseDevice, MouseButton mouseButton)
Parameters
Type | Name | Description |
---|---|---|
IMouseDevice | mouseDevice | The mnouse |
MouseButton | mouseButton | The mouse button |
Returns
Type | Description |
---|---|
System.Boolean |
|
IsButtonReleased(IMouseDevice, MouseButton)
Determines whether the specified mouse button is released.
public static bool IsButtonReleased(this IMouseDevice mouseDevice, MouseButton mouseButton)
Parameters
Type | Name | Description |
---|---|---|
IMouseDevice | mouseDevice | The mnouse |
MouseButton | mouseButton | The mouse button |
Returns
Type | Description |
---|---|
System.Boolean |
|