Class VirtualButton.Pointer
Mouse virtual button.
public class VirtualButton.Pointer : VirtualButton, IVirtualButton- Inheritance
- 
      objectVirtualButton.Pointer
- Implements
- Inherited Members
Constructors
Pointer(string, int, int, bool)
protected Pointer(string name, int id, int pointerId, bool isPositiveAndNegative)Parameters
Fields
DeltaX
The X component of the Pointer Delta.
public static readonly VirtualButton.Pointer DeltaXField Value
DeltaY
The Y component of the Pointer Delta.
public static readonly VirtualButton.Pointer DeltaYField Value
PointerId
The pad index.
public readonly int PointerIdField Value
PositionX
The X component of the Pointer Position.
public static readonly VirtualButton.Pointer PositionXField Value
PositionY
The Y component of the Pointer Position.
public static readonly VirtualButton.Pointer PositionYField Value
State
The current state of pointers.
public static readonly VirtualButton.Pointer StateField Value
Methods
BuildButtonName()
protected override string BuildButtonName()Returns
GetValue(InputManager)
Gets the value associated with this virtual button from an input manager.
public override float GetValue(InputManager manager)Parameters
- managerInputManager
- The manager. 
Returns
- float
- System.Single. 
IsDown(InputManager)
Indicate if the button is currently down
public override bool IsDown(InputManager manager)Parameters
- managerInputManager
- The input manager 
Returns
IsPressed(InputManager)
Indicate if the button has been pressed since the last frame
public override bool IsPressed(InputManager manager)Parameters
- managerInputManager
- The input manager 
Returns
IsReleased(InputManager)
Indicate if the button has been released since the last frame
public override bool IsReleased(InputManager manager)Parameters
- managerInputManager
- The input manager 
Returns
WithId(int)
Return a pointer button for the given point Id.
public VirtualButton.Pointer WithId(int pointerId)Parameters
- pointerIdint
- the Id of the pointer 
Returns
- VirtualButton.Pointer
- An pointer button for the given pointer Id.