Skip to main content

Bindings

A set of events and data to register and get for information of bindings, such as keyboard, mice, controllers, etc.

To get the Bindings class, you must get its handler.

let Bindings = instance.GetHandler("Bindings")

You can then use the Bindings property to access the Bindings class.

Methods

Method NameReturn TypeParametersDescription
GetAllPresentBindingsstring[]noneGets all active binding ids
GetUpfloatstringGets the Up part of a Vector for a binding id
GetDownfloatstringGets the Down part of a Vector for a binding id
GetLeftfloatstringGets the Left part of a Vector for a binding id
GetRightfloatstringGets the Right part of a Vector for a binding id
GetButtonboolstringGets if Button is currently being pressed or not for a binding id
GetButton2boolstringGets if Button2 is currently being pressed or not for a binding id
GetTriggerfloatstringGets the amount of pressure that is being pressed against the Trigger for a binding id
GetGrabboolstringGets if the Grab binding is active or not for a binding id
RegisterButtonClickvoidstring, function(bool)Registers a SandboxFunc to a specific binding on Button click
RegisterButton2Clickvoidstring, function(bool)Registers a SandboxFunc to a specific binding on Button2 click
RegisterTriggerClickvoidstring, function(float)Registers a SandboxFunc to a specific binding on Trigger click
RegisterKeyboardClickvoidstring, function()Registers a SandboxFunc to a specific KeyCode on click
RegisterMouseClickvoidint, function()Registers a SandboxFunc to a specific mouseId on mouse click