Class MouseDeviceExtensions
public static class MouseDeviceExtensions
- Inheritance
-
MouseDeviceExtensions
Methods
IsButtonDown(IMouseDevice, MouseButton)
Determines whether the specified button is being pressed down
public static bool IsButtonDown(this IMouseDevice mouseDevice, MouseButton mouseButton)
Parameters
mouseDeviceIMouseDeviceThe mnouse
mouseButtonMouseButtonThe mouse button
Returns
- bool
trueif the specified button is being pressed down; otherwise,false.
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
mouseDeviceIMouseDeviceThe mnouse
mouseButtonMouseButtonThe mouse button
Returns
- bool
trueif the specified mouse button is pressed since the previous update; otherwise,false.
IsButtonReleased(IMouseDevice, MouseButton)
Determines whether the specified mouse button is released.
public static bool IsButtonReleased(this IMouseDevice mouseDevice, MouseButton mouseButton)
Parameters
mouseDeviceIMouseDeviceThe mnouse
mouseButtonMouseButtonThe mouse button
Returns
- bool
trueif the specified mouse button is released; otherwise,false.