InputChanged

Constructor:

InputChanged(inputobject,bool)

Description

This event is triggered when the user input changes.

Parameters

Variable name Type Default Description
inputobject RWObject Inputobject object

Examples

When the user input changes, observe whether the event is printed or not

UserInputService.InputChanged:Connect(function(inputobject) 
    print("The event of input changing is triggered")
    print(tostring(inputobject.InputType))
    print(tostring(inputobject.InputState))
    print(tostring(inputobject.InputKeyCode))
end)