Class VirtualButton.Mouse
Mouse virtual button.
public class VirtualButton.Mouse : VirtualButton, IVirtualButton
- Inheritance
-
VirtualButton.Mouse
- Implements
- Inherited Members
Constructors
Mouse(string, int, bool)
protected Mouse(string name, int id, bool isPositiveAndNegative)
Parameters
Fields
DeltaX
Equivalent to X Axis delta of MousePosition.
public static readonly VirtualButton.Mouse DeltaX
Field Value
DeltaY
Equivalent to Y Axis delta of MousePosition.
public static readonly VirtualButton.Mouse DeltaY
Field Value
Extended1
Equivalent to Extended1.
public static readonly VirtualButton.Mouse Extended1
Field Value
Extended2
Equivalent to Extended2.
public static readonly VirtualButton.Mouse Extended2
Field Value
Left
Equivalent to Left.
public static readonly VirtualButton.Mouse Left
Field Value
Middle
Equivalent to Middle.
public static readonly VirtualButton.Mouse Middle
Field Value
PositionX
Equivalent to X Axis of MousePosition.
public static readonly VirtualButton.Mouse PositionX
Field Value
PositionY
Equivalent to Y Axis of MousePosition.
public static readonly VirtualButton.Mouse PositionY
Field Value
Right
Equivalent to Right.
public static readonly VirtualButton.Mouse Right
Field Value
Methods
GetValue(InputManager)
Gets the value associated with this virtual button from an input manager.
public override float GetValue(InputManager manager)
Parameters
manager
InputManagerThe manager.
Returns
- float
System.Single.
IsDown(InputManager)
Indicate if the button is currently down
public override bool IsDown(InputManager manager)
Parameters
manager
InputManagerThe input manager
Returns
IsPressed(InputManager)
Indicate if the button has been pressed since the last frame
public override bool IsPressed(InputManager manager)
Parameters
manager
InputManagerThe input manager
Returns
IsReleased(InputManager)
Indicate if the button has been released since the last frame
public override bool IsReleased(InputManager manager)
Parameters
manager
InputManagerThe input manager