Show / Hide Table of Contents

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.

Inheritance
System.Object
InputDevice
GamePadDevice
Inherited Members
InputDevice.NewAxisID
InputDevice.IsConnected
InputDevice.Id
InputDevice.Desc
InputDevice.Category
InputDevice.AxesCount
InputDevice.AxisDesc
InputDevice.GetAxisDescription(Int32)
InputDevice.GetAxis(Int32)
InputDevice.GetAxisRaw(Int32)
InputDevice.SetAxisDeadzone(Int32, Single)
InputDevice.GetAxisDeadzone(Int32)
InputDevice.AxisValueChanged
InputDevice.ButtonCount
InputDevice.ButtonDesc
InputDevice.GetButtonDescription(Int32)
InputDevice.GetButton(Int32)
InputDevice.IsButtonDown(Int32)
InputDevice.IsButtonUp(Int32)
InputDevice.ButtonValueChanged
InputDevice.RegisterCalculatedAxis(AxisDescription, InputDevice.AxisValueCalculator, Single)
InputDevice.RegisterVelocityAxis(Int32, Int32, Int32, String, AxisDirection)
InputDevice.RegisterSingleButtonAxis(Int32, AxisDirection, Single, Single, Int32, String)
InputDevice.RegisterTwoButtonAxis(Int32, Int32, AxisDirection, Single, Single, Int32, String)
InputDevice.PostRender()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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

true if the a button is currently pressed; otherwise, false.

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

true if the back button is currently pressed; otherwise, false.

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

true if the b button is currently pressed; otherwise, false.

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

true if the dpaddown button is currently pressed; otherwise, false.

DPadLeftButton

Retrieves the current state of the dpadleft button.

Declaration
public bool DPadLeftButton { get; }
Property Value
Type Description
System.Boolean

true if the dpadleft button is currently pressed; otherwise, false.

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

true if the dpadright button is currently pressed; otherwise, false.

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

true if the dpadup button is currently pressed; otherwise, false.

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

true if the L3 button is currently pressed; otherwise, false.

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

true if the left button is currently pressed; otherwise, false.

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

true if the R3 button is currently pressed; otherwise, false.

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

true if the right button is currently pressed; otherwise, false.

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

true if the start button is currently pressed; otherwise, false.

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

true if the x button is currently pressed; otherwise, false.

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

true if the y button is currently pressed; otherwise, false.

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.

Generated by DocFX
GitHub Repo
Back to top