Class XInputController
An XInput compatible game controller.
Inherited Members
Namespace: UnityEngine.InputSystem.XInput
Syntax
public class XInputController : Gamepad, IDualMotorRumble, IHaptics
Remarks
Note that on non-Microsoft platforms, XInput controllers will not actually use the XInput interface but will rather be interfaced with through different APIs -- on OSX, for example, HID is used to interface with Xbox controlllers. In those cases, XInput-specific functionality (like XInputController.Capabilities) will not be available.
Properties
menu
Declaration
public ButtonControl menu { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
subType
What specific kind of XInput controller this is.
Declaration
public XInputController.DeviceSubType subType { get; }
Property Value
Type | Description |
---|---|
XInputController.DeviceSubType |
Remarks
When the controller is picked up through interfaces other than XInput or through old versions of XInput, this will always be Unknown. Put another way, this value is meaningful only on recent Microsoft platforms.
view
Declaration
public ButtonControl view { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
Methods
FinishSetup()
Declaration
protected override void FinishSetup()