Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

readLastInputType

readLastInputType(): InputType

The kind of input that last turned the camera: a finger’s, a mouse’s or a pen’s, read per input rather than per device, so a laptop’s touch screen reads Touch for a finger’s drag and its trackpad KeyboardAndMouse. A key press or a tap on the HUD never changes it. Before any input, Touch once the touch lock holds, on a device with no cursor, and KeyboardAndMouse otherwise. As Roblox’s UserInputService:GetLastInputType().

InputType