For thread safety, this property is not safe to read in an unsynchronized thread.
The LastInputTypeChanged event fires whenever the client changes how they are interacting via a Human-Computer Interface device. (i.e. from MouseMovement to MouseWheel or from Thumbstick1 to Thumbstick2).
To get the value of LastInputType, regardless of whether it has changed, you can use the
As this event only fires locally, it can only be used in a
Hide Mouse During Keyboard Input
This example hides the mouse icon while the player beings using their keyboard, such as to chat or enter text into a
TextBox. The mouse icon reappears when the user resumes mouse input.
This uses the
UserInputType/LastInputType|LastInputType event to determine when the user begins keyboard input and mouse input - based on the value of the
In order for this example to work as expected, it should be placed in a