controller(id) -> a Controller , method of UB

Get the controller of the player identified by its number.

Parameters:
name type description
id int identifier of the controller (and also player)
Returns

a Controller instance.

// use the controller of a player to set the input mode.

UB.controller(event.data.playerID).enableInput("draw");

See all methods of the api.