Class GamePadDevice
Special case of an InputDevice identifying itself as a GameController. Defines convenience methods to access the typical gamepad axes and buttons. Registers the gamepad dpad axes.
Inherited Members
Namespace: Fusee.Engine.Core
Assembly: Fusee.Engine.Core.dll
Syntax
public class GamePadDevice : InputDevice
Constructors
GamePadDevice(IInputDeviceImp)
Initializes a new instance of the GamePadDevice class.
Declaration
public GamePadDevice(IInputDeviceImp inpDeviceImp)
Parameters
Type | Name | Description |
---|---|---|
IInputDeviceImp | inpDeviceImp | The platform dependent connector to the underlying physical device. |
Properties
AButton
Retrieves the current state of the a button.
Declaration
public bool AButton { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
AButtonDesc
Retrieves information about the a button.
Declaration
public ButtonDescription AButtonDesc { get; }
Property Value
Type | Description |
---|---|
ButtonDescription | The description for the a button. |
BackButton
Retrieves the current state of the back button.
Declaration
public bool BackButton { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
BackButtonDesc
Retrieves information about the back button.
Declaration
public ButtonDescription BackButtonDesc { get; }
Property Value
Type | Description |
---|---|
ButtonDescription | The description for the back button. |
BButton
Retrieves the current state of the b button.
Declaration
public bool BButton { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
BButtonDesc
Retrieves information about the b button.
Declaration
public ButtonDescription BButtonDesc { get; }
Property Value
Type | Description |
---|---|
ButtonDescription | The description for the b button. |
DPadDButtonDesc
Retrieves information about the dpaddown button.
Declaration
public ButtonDescription DPadDButtonDesc { get; }
Property Value
Type | Description |
---|---|
ButtonDescription | The description for the dpaddown button. |
DPadDownButton
Retrieves the current state of the dpaddown button.
Declaration
public bool DPadDownButton { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
DPadLeftButton
Retrieves the current state of the dpadleft button.
Declaration
public bool DPadLeftButton { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
DPadLeftDesc
Retrieves information about the dpadleft button.
Declaration
public ButtonDescription DPadLeftDesc { get; }
Property Value
Type | Description |
---|---|
ButtonDescription | The description for the dpadleft button. |
DPadRightButton
Retrieves the current state of the dpadright button.
Declaration
public bool DPadRightButton { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
DPadRightButtonDesc
Retrieves information about the dpadright button.
Declaration
public ButtonDescription DPadRightButtonDesc { get; }
Property Value
Type | Description |
---|---|
ButtonDescription | The description for the dpadright button. |
DPadUpButton
Retrieves the current state of the dpadup button.
Declaration
public bool DPadUpButton { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
DPadUpDesc
Retrieves information about the dpadup button.
Declaration
public ButtonDescription DPadUpDesc { get; }
Property Value
Type | Description |
---|---|
ButtonDescription | The description for the dpadup button. |
L3Button
Retrieves the current state of the L3 button.
Declaration
public bool L3Button { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
L3ButtonDesc
Retrieves information about the L3 button.
Declaration
public ButtonDescription L3ButtonDesc { get; }
Property Value
Type | Description |
---|---|
ButtonDescription | The description for the L3 button. |
LeftButton
Retrieves the current state of the left button.
Declaration
public bool LeftButton { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
LeftButtonDesc
Retrieves information about the left button.
Declaration
public ButtonDescription LeftButtonDesc { get; }
Property Value
Type | Description |
---|---|
ButtonDescription | The description for the left button. |
LSX
Gets the left stick´s x value.
Declaration
public float LSX { get; }
Property Value
Type | Description |
---|---|
System.Single | Movement from the zeroing point of the left analog stick in x direction. |
LSY
Gets the left stick´s y value.
Declaration
public float LSY { get; }
Property Value
Type | Description |
---|---|
System.Single | Movement from the zeroing point of the left analog stick in y direction. |
LT
Gets the left trigger´s y value
Declaration
public float LT { get; }
Property Value
Type | Description |
---|---|
System.Single | Movement from the upmost point of the left trigger. |
LTDesc
Retrieves information about the LT axis.
Declaration
public AxisDescription LTDesc { get; }
Property Value
Type | Description |
---|---|
AxisDescription | The description for the LT axis. |
LXDesc
Retrieves information about the Lx axis.
Declaration
public AxisDescription LXDesc { get; }
Property Value
Type | Description |
---|---|
AxisDescription | The description for the Lx axis. |
LYDesc
Retrieves information about the Ly axis.
Declaration
public AxisDescription LYDesc { get; }
Property Value
Type | Description |
---|---|
AxisDescription | The description for the Ly axis. |
R3Button
Retrieves the current state of the R3 button.
Declaration
public bool R3Button { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
R3ButtonDesc
Retrieves information about the R3 button.
Declaration
public ButtonDescription R3ButtonDesc { get; }
Property Value
Type | Description |
---|---|
ButtonDescription | The description for the R3 button. |
RightButton
Retrieves the current state of the right button.
Declaration
public bool RightButton { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
RightDesc
Retrieves information about the right button.
Declaration
public ButtonDescription RightDesc { get; }
Property Value
Type | Description |
---|---|
ButtonDescription | The description for the right button. |
RSX
Gets the right stick´s x value.
Declaration
public float RSX { get; }
Property Value
Type | Description |
---|---|
System.Single | Movement from the zeroing point of the right analog stick in x direction. |
RSY
Gets the right stick´s y value.
Declaration
public float RSY { get; }
Property Value
Type | Description |
---|---|
System.Single | Movement from the zeroing point of the right analog stick in y direction. |
RT
Gets the right trigger´s y value
Declaration
public float RT { get; }
Property Value
Type | Description |
---|---|
System.Single | Movement from the upmost point of the right trigger. |
RTDesc
Retrieves information about the RT axis.
Declaration
public AxisDescription RTDesc { get; }
Property Value
Type | Description |
---|---|
AxisDescription | The description for the RT axis. |
RXDesc
Retrieves information about the Rx axis.
Declaration
public AxisDescription RXDesc { get; }
Property Value
Type | Description |
---|---|
AxisDescription | The description for the Rx axis. |
RYDesc
Retrieves information about the Ry axis.
Declaration
public AxisDescription RYDesc { get; }
Property Value
Type | Description |
---|---|
AxisDescription | The description for the Ry axis. |
StartButton
Retrieves the current state of the start button.
Declaration
public bool StartButton { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
StartDesc
Retrieves information about the start button.
Declaration
public ButtonDescription StartDesc { get; }
Property Value
Type | Description |
---|---|
ButtonDescription | The description for the start button. |
XButton
Retrieves the current state of the x button.
Declaration
public bool XButton { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
XDesc
Retrieves information about the x button.
Declaration
public ButtonDescription XDesc { get; }
Property Value
Type | Description |
---|---|
ButtonDescription | The description for the x button. |
XDPad
Retrieves the current dpad movement in x direction.
Declaration
public float XDPad { get; }
Property Value
Type | Description |
---|---|
System.Single | The x movement. |
XDPadDesc
Retrieves information about the x dpad axis.
Declaration
public AxisDescription XDPadDesc { get; }
Property Value
Type | Description |
---|---|
AxisDescription | The description for the x dpad axis. |
YButton
Retrieves the current state of the y button.
Declaration
public bool YButton { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
YButtonDesc
Retrieves information about the y button.
Declaration
public ButtonDescription YButtonDesc { get; }
Property Value
Type | Description |
---|---|
ButtonDescription | The description for the y button. |
YDPad
Retrieves the current dpad movement y direction.
Declaration
public float YDPad { get; }
Property Value
Type | Description |
---|---|
System.Single | The y movement. |
YDPadDesc
Retrieves information about the y dpad axis.
Declaration
public AxisDescription YDPadDesc { get; }
Property Value
Type | Description |
---|---|
AxisDescription | The description for the y dpad axis. |