Skip to content
Roblox API Reference

InputBinding

Defines which hardware binding should trigger the parent InputAction.
Memory category
Instances
Own members
25
Inherited members
75
Subclasses
0
Siblings
608

Properties47

Inherited fromObject2

Property categoryData

Inherited fromInstance21

Property categoryBehavior

Property categoryData

Property categoryPermissions

Defined byInputBinding24

Property categoryBehavior

  • InputBinding.Deadzone: NumberRange = NumberRange.new(0.1, 1)
    • Capabilities: Input
  • InputBinding.KeyCode: Enum.KeyCode = Enum.KeyCode.None
    Specifies the KeyCode which triggers the parent InputAction.
    • Read capabilities: Input
  • InputBinding.PointerIndex: number = 0
    • Read capabilities: Input
  • InputBinding.PressedThreshold: number = 0.5
    Numerical value above which to fire an InputAction with a Type of Bool.
    • Read capabilities: Input
  • InputBinding.PrimaryModifier: Enum.KeyCode = Enum.KeyCode.None
    Specifies a primary KeyCode that must be pressed for the binding to activate.
    • Read capabilities: Input
  • InputBinding.ReleasedThreshold: number = 0.200000003
    Numerical value below which to fire an InputAction with a Type of Bool.
    • Read capabilities: Input
  • InputBinding.ResponseCurve: number = 1
    Numerical value to configure scaling for more precise thumbstick aiming.
    • Read capabilities: Input
  • InputBinding.Scale: number = 1
    Scalar multiplier applied uniformly to all components of a directional InputAction's output.
    • Read capabilities: Input
  • InputBinding.SecondaryModifier: Enum.KeyCode = Enum.KeyCode.None
    Specifies a secondary KeyCode that must be pressed for the binding to activate.
    • Read capabilities: Input
  • Determines whether this binding is triggered by hardware input or programmatically via Fire().
    • Capabilities: Input
  • InputBinding.UIButton: GuiButton
    Connects a GuiButton to a boolean action.
    • Read capabilities: Input
  • InputBinding.UIModifier: GuiButton
    Specifies a GuiButton that must be active for the binding to activate.
    • Capabilities: Input
  • InputBinding.Vector2Scale: Vector2 = Vector2.one
    Per-component scale applied to the output of a Direction2D action.
    • Read capabilities: Input
  • InputBinding.Vector3Scale: Vector3 = Vector3.one
    Per-component scale applied to the output of a Direction3D action.
    • Read capabilities: Input

Property categoryComposite Directions

Property categoryDisplay

  • InputBinding.DisplayImage: Content
    Custom image asset to display for this binding.
    • Capabilities: Input
  • InputBinding.DisplayName: string = ""
    Custom display text for this binding.
    • Capabilities: Input

Property categoryState Editing

  • InputBinding.Editor: boolean = false
    • Not replicated
    • Not scriptable
    • Roblox script security
    • Read capabilities: Input

Methods43

Inherited fromObject3
  • Get an event that fires when a given property of the object changes.
    Parameters
    ParameterDescription
    property: string
    The property to connect to.
    Returns
    TypeDescription
    RBXScriptSignal
    A signal that fires whenever the property changes.
  • Object:IsA(className: string): boolean
    Returns true if an object's class matches or inherits from a given class.
    • Custom Lua state
    • Thread safe
    Parameters
    ParameterDescription
    className: string
    The class against which the Object's class will be checked. Case-sensitive.
    Returns
    TypeDescription
    boolean
    Describes whether the Object's class matched or is a subclass of the given class.
  • Object:isA(className: string): boolean
    Deprecated: This deprecated function is a variant of Object:IsA() which should be used instead.
    • Deprecated
    • Custom Lua state
    Parameters
    Parameter
    className: string
    Returns
    Type
    boolean

    Use IsA instead.

Inherited fromInstance39
Defined byInputBinding1
  • InputBinding:Fire(state: any)
    Programmatically updates the parent InputAction state through this binding.
    • Capabilities: Input
    • Simulation access
    Parameters
    ParameterDescription
    state: any
    The state value to apply; must match the parent action's Type.

Events10

Inherited fromObject1
Inherited fromInstance9