Skip to content

Wrapper for ContextActionService with an easy to use API

License

Notifications You must be signed in to change notification settings

vocksel/context-controls

Repository files navigation

ContextControls

CI Docs

Wrapper around ContextActionService that provides a clean API for creating and binding actions.

Usage

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()

Installation

Wally

Add the following to your wally.toml:

[dependencies]
ContextControls = "vocksel/context-controls@1.0.1"

Model File

  • 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.

Documentation

You can find the documentation here.

Contributing

See the contributing guide.

License

MIT License

About

Wrapper for ContextActionService with an easy to use API

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages