Gamepad
class in UnityEngine.InputSystem · Unity.InputSystem · inherits from InputDevice
32 of 35 of Unity's members
In Tassix
A gamepad's controls. None is connected yet (current is null), but scripts that check compile and run.
Constructors 1
Gamepad()Properties 25
ButtonControl aButton { get; }static ReadOnlyArray<Gamepad> all { get; }ButtonControl bButton { get; }ButtonControl buttonEast { get; }ButtonControl buttonNorth { get; }ButtonControl buttonSouth { get; }ButtonControl buttonWest { get; }ButtonControl circleButton { get; }ButtonControl crossButton { get; }static Gamepad? current { get; }DpadControl dpad { get; }ButtonControl leftShoulder { get; }StickControl leftStick { get; }ButtonControl leftStickButton { get; }ButtonControl leftTrigger { get; }ButtonControl rightShoulder { get; }StickControl rightStick { get; }ButtonControl rightStickButton { get; }ButtonControl rightTrigger { get; }ButtonControl selectButton { get; }ButtonControl squareButton { get; }ButtonControl startButton { get; }ButtonControl triangleButton { get; }ButtonControl xButton { get; }ButtonControl yButton { get; }Methods 5
void MakeCurrent()void PauseHaptics()Stops the motors, keeping their speeds for ResumeHaptics.
void ResetHaptics()Stops the motors and forgets their speeds.
void ResumeHaptics()void SetMotorSpeeds(float lowFrequency, float highFrequency)Runs the motors (0 to 1 each; low frequency is the heavy left one) until they're set again; a connected controller rumbles if it can.
Not in Tassix yet 3
FinishSetup OnAdded OnRemoved