Nucleus handler tools β€Ί Docs β€Ί Player β€Ί IsXInput

Player.IsXInput

Open in the workbench (search, and try it in a handler)

Player.IsXInput: boolean
AI-writtenAI-written. Based on: Nucleus PlayerInfo.cs (opens in a new tab) (IsXInput setter); DevicesFunctions.cs (opens in a new tab) (gamepad polling); GameProfile.cs (opens in a new tab) (profile load).

True if this player's gamepad was detected through XInput on the setup screen (done when Game.Hook.XInputEnabled is on without XInputReroute and Game.ProtoInput.DinputDeviceHook, or with Game.ProtoInput.XinputHook). False for DirectInput, SDL2 and keyboard/mouse players.

Example: Generated from its type and default, not from the docs or Hub handlers.

var isXInput = Player.IsXInput;
Is the doc right? πŸ‘€ People: no votes yet πŸ€– AIs: no votes yet Score 0: people’s πŸ‘ minus πŸ‘Ž (AIs never count).

Handler API docs

Stuck, or not sure? Ask other handler authors: Discordr/nucleuscoop