Phaser API Documentation

  Version: 
forceUpState(pointer, gameObject)

Description:

This method will force the given Game Object into the 'up' input state.

This will check to see if the Game Object is enabled for input, and if so, it will emit the GAMEOBJECT_POINTER_UP event for it. If that doesn't change the input state, it will then emit the GAMEOBJECT_UP event.

The Game Object is not checked against the Pointer to see if it can enter this state, that is up to you to do before calling this method.

Parameters:

name type description
pointer Phaser.Input.Pointer

The pointer to use when setting the state.

gameObject Phaser.GameObjects.GameObject

The Game Object to have its state set.

Since: 3.85.0