GetLastInputType

Constructor:

GetLastInputType()

Description

Returns the type of the last input

Return Value

Variable name Type Default Description
UserInputType enum enum UserInputType - the last input type

Examples

Observe whether the latest user input event is triggered or not

UserInputService.LastInputTypeChanged:Connect(function()
    print("GetLastInputType==="..tostring(UserInputService:GetLastInputType()))
end)