Skip to main content

Base Input

Functions​

ReturnsNameDescription
Base InputSetEnabledAllows enabling/disabling of the input
booleanIsEnabledWhether the input is enabled

SetEnabled​

Allows enabling/disabling of the input

Returns the Base Input (self)

input:SetEnabled(false)
TypeParameterDefault ValueDescription
booleanstateWhether its enabled

IsEnabled​

Returns boolean whether its enabled

if input:IsEnabled() then
Package.Log("Input is enabled")
else
Package.Log("Input is disabled")
end