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
mouseDevice
IMouseDeviceThe mnouse
mouseButton
MouseButtonThe mouse button
Returns
- bool
true
if 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
mouseDevice
IMouseDeviceThe mnouse
mouseButton
MouseButtonThe mouse button
Returns
- bool
true
if 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
mouseDevice
IMouseDeviceThe mnouse
mouseButton
MouseButtonThe mouse button
Returns
- bool
true
if the specified mouse button is released; otherwise,false
.