API reference
Every PadPlay type, member and setting on one page. Filter by name or meaning.
PadPlayPad
Each phone is one Input System Gamepad, so <Gamepad>/… bindings and PlayerInput just work. Created on PlayerReady, removed on PlayerRemoved.
attitude— The phone's attitude after calibration, in Unity's axes. Upright with the screen facing you is identity. ReadValue() gives a Quaternion; bind it as <PadPlayPad>/attitude.angularVelocity— Rotation speed in rad/s, on the camera's local axes.IsConnected— false while waiting to reconnect. The pad stays; the attitude holds and the buttons are released.IsAway— true while the phone's app is not on the game's screen (Away). Presence is Here, Glance or Away. While not Here the phone sends no input (buttons released, the attitude holds).GetButton— A button by layout id. 0 to 13 are the Gamepad buttons (0 = buttonSouth, 8 = dpad.up); 14 to 31 are your own (<PadPlayPad>/custom14 … custom31).recenter— The player asked to recenter. The SDK has already done it; use it for a sound or a hint.RecenterCount— How many times the attitude was recentered. It changes in the same update as the new attitude, so code that turns things with attitude can re-align on that frame without a jump.Recenter— Same as host.Recenter(PlayerSlot, mode).SetMotorSpeeds— Vibrates. A phone has one motor, so the strength is the larger value. 0, 0 stops. PauseHaptics, ResumeHaptics and ResetHaptics work as usual.PlayerSlot— 0-based slot (show + 1). The same after a resume.ButtonBits— Held buttons as bits by layout id (14 to 31 included).