Thumbstick Studio: Touch, Gamepad and Keyboard Controls Kit
README.md
controlsKit.controls
The kit's public API: the one module a game requires. Controls.use(scheme) switches on a complete keyboard + mouse, gamepad and touch scheme. value / held / pressed / released / charge / on / onGesture read the shared action names. setStick / setButtons / setSkin / setPromptStyle change styles live. rebind / conflicts / resetBindings / exportBindings handle bindings. styles() / schemes() / describe() / capabilities() answer what the kit has, and player(n, filter) adds extra local players.
local Controls = require("controlsKit.controls")
Controls.use("twinStick")
local move = Controls.value("move")
Controls.on("fire", function() shoot() end)
The kit ticks itself once a frame after the first call; Controls.stop() shuts it down. See the package README for the full list.