Nucleus handler tools โบ Docs โบ ProtoInput โบ SetDrawFakeCursor
ProtoInput.SetDrawFakeCursor
Open in the workbench (search, and try it in a handler)
ProtoInput.SetDrawFakeCursor(
instanceHandle: number,
enable: boolean
): void
Shows or hides the fake cursor Proto Input draws over the game for this instance. Parameters: the instance handle and true/false.
instanceHandle: The player's Proto Input instance, Player.ProtoInputInstanceHandle (or PlayerList[i].ProtoInputInstanceHandle).enable: true draws Proto Input's fake mouse cursor in that instance, false hides it.
In practice
Shows or hides Proto Input's fake cursor in one instance, for games that have no cursor of their own. Handlers show it in Game.ProtoInput.OnInputLocked (with true); some hide it again in Game.ProtoInput.OnInputUnlocked (with false).
Is "In practice" right?
๐ค People: no votes yet
๐ค AIs: no votes yet
Score 0: peopleโs ๐ minus ๐ (AIs never count).
Tell us what's wrongGive feedback
Example: From Hub handlers
for (var i = 0; i < PlayerList.Count; i++) {
var player = PlayerList[i];
ProtoInput.SetDrawFakeCursor(
player.ProtoInputInstanceHandle,
false
);
}
Is the doc right?
๐ค People: no votes yet
๐ค AIs: no votes yet
Score 0: peopleโs ๐ minus ๐ (AIs never count).
Tell us what's wrongGive feedback