Class VirtualButton.GamePad
GamePad virtual button.
public class VirtualButton.GamePad : VirtualButton, IVirtualButton
- Inheritance
-
VirtualButton.GamePad
- Implements
- Inherited Members
Constructors
GamePad(string, int, int, bool)
protected GamePad(string name, int id, int padIndex, bool isPositiveAndNegative)
Parameters
Fields
A
Equivalent to A.
public static readonly VirtualButton.GamePad A
Field Value
B
Equivalent to B.
public static readonly VirtualButton.GamePad B
Field Value
Back
Equivalent to Back.
public static readonly VirtualButton.GamePad Back
Field Value
LeftShoulder
Equivalent to LeftShoulder.
public static readonly VirtualButton.GamePad LeftShoulder
Field Value
LeftThumb
Equivalent to LeftThumb.
public static readonly VirtualButton.GamePad LeftThumb
Field Value
LeftThumbAxisX
Equivalent to the X Axis of LeftThumb.
public static readonly VirtualButton.GamePad LeftThumbAxisX
Field Value
LeftThumbAxisY
Equivalent to the Y Axis of LeftThumb.
public static readonly VirtualButton.GamePad LeftThumbAxisY
Field Value
LeftTrigger
Equivalent to LeftTrigger.
public static readonly VirtualButton.GamePad LeftTrigger
Field Value
PadDown
Equivalent to PadDown.
public static readonly VirtualButton.GamePad PadDown
Field Value
PadIndex
The pad index.
public readonly int PadIndex
Field Value
PadLeft
Equivalent to PadLeft.
public static readonly VirtualButton.GamePad PadLeft
Field Value
PadRight
Equivalent to PadRight.
public static readonly VirtualButton.GamePad PadRight
Field Value
PadUp
Equivalent to PadUp.
public static readonly VirtualButton.GamePad PadUp
Field Value
RightShoulder
Equivalent to RightShoulder.
public static readonly VirtualButton.GamePad RightShoulder
Field Value
RightThumb
Equivalent to RightThumb.
public static readonly VirtualButton.GamePad RightThumb
Field Value
RightThumbAxisX
Equivalent to the X Axis of RightThumb.
public static readonly VirtualButton.GamePad RightThumbAxisX
Field Value
RightThumbAxisY
Equivalent to the Y Axis of RightThumb.
public static readonly VirtualButton.GamePad RightThumbAxisY
Field Value
RightTrigger
Equivalent to RightTrigger.
public static readonly VirtualButton.GamePad RightTrigger
Field Value
Start
Equivalent to Start.
public static readonly VirtualButton.GamePad Start
Field Value
X
Equivalent to X.
public static readonly VirtualButton.GamePad X
Field Value
Y
Equivalent to Y.
public static readonly VirtualButton.GamePad Y
Field 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
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
Returns
OfGamePad(int)
Return an instance of a particular GamePad.
public VirtualButton.GamePad OfGamePad(int index)
Parameters
index
intThe gamepad index.
Returns
- VirtualButton.GamePad
A new GamePad button linked to the gamepad index.