Wrapper around ContextActionService that provides a clean API for creating and binding actions.
local ContextControls = require(game.ReplicatedStorage.ContextControls)
local action = ContextControls.createAction({
name = "foo",
inputTypes = {
Enum.KeyCode.E,
Enum.KeyCode.ButtonX,
},
callback = function(input: InputObject)
print("Hello world!")
end,
})
action:bind()
Add the following to your wally.toml
:
[dependencies]
ContextControls = "vocksel/[email protected]"
- Download a copy of the rbxm from the releases page under the Assets section.
- Drag and drop the file into Roblox Studio to add it to your experience.
You can find the documentation here.
See the contributing guide.