GuiInputEnded

Constructor:

GuiInputEnded(inputobject,bool)

Description

This event is triggered when the user input ends.

Parameters

Name Type Description
inputobject RWObject Input object

Examples

Add the following client script under ClientfirstLogic. When the mobile phone finishes inputting and observe whether the event is triggered or not.

wait(1)
local uipanel = RWObject.Create("UiPanel") -- create a UiPanel
local uibtn = RWObject.Create("UiButton") -- create a UiButton
uibtn.Parent = uipanel -- set the parent of the created UiButton to the new created UiPanel
local person = Players:GetLocalPlayer() -- retrieve the player
uipanel.Parent = person. GameUI -- Set the parent of the UiPanel as GameUI
uibtn.GuiInputEnded:Connect(function(inputobject) -- the event of input ending is triggered on the UiButton
    print("End inputting")
    print(tostring(inputobject.UserInputType))-- print the input type
    print(tostring(inputobject.UserInputState)) -- print the input state    
end)