Nucleus handler tools › Docs › Player › ProtoController1

Player.ProtoController1

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

Player.ProtoController1: number

First controller index Proto Input gives this player's instance: one-based (1 is the first gamepad, i.e. GamepadId + 1), 0 means none. Nucleus sets it for each player right after Game.Play, overwriting your value, unless Game.UseManualProtoControllersSetup is true. It is only sent to Proto Input when Game.ProtoInput.MultipleProtoControllers is true; otherwise Nucleus sends GamepadId + 1 (0 for raw mouse/keyboard players).

✎ AI-written, based on Nucleus PlayerInfo.cs, ProtoInputLauncher.cs (SetProtoControllersIndex), GenericGameHandler.cs (InjectStartup/InjectRuntime calls). Not from the official docs. Is it wrong? Tell us

Handler API docs

Is this right? Tell us what's wrong
Stuck, or not sure? Ask other handler authors: Discordr/nucleuscoop