Spark Changelog
Unreleased Changes
0.3.1 - May 25, 2025
- Added types for
Actions:setAssociatedGamepad
andActions:removeAssociatedGamepad
- Added support for reading the depth value of gamepad triggers via
Actions:axis
0.3.0 - May 10, 2025
This release contains breaking changes and an overhauled API. Spark no longer handles the serialization of customized inputs, this has to be done user side. In return, features like modifiers were made possible.
See the docs and examples for the updated API.
Changes:
- Files now use the
.luau
extension instead of.lua
- Added types
Actions
- Added
Actions:setAssociatedGamepad
- Added
Actions:removeAssociatedGamepad
- Added
Actions:setRebuildBindings
- Added
Actions:rebuildBindings
- Added
Actions:getInputsByDevices
- Added
Actions:moveAxis
- Renamed
Actions:value
toActions:axis
- Renamed
Actions:move
toActions:moveAxis2d
Actions:update
now only takesInputState
- Added
- Added
Rebind:setRetainInput
- Added modifiers via
Bind:addModifiers
andActionConfig:addModifiers
deadZone
andscale
modifiers
- Added
getDeviceFromInput
- Removed
InputMap
associatedGamepad
is replaced byActions:setAssociatedGamepad
andActions:removeAssociatedGamepad
getByDevices
is replaced byActions:getInputsByDevices
- Binding is now done via
Actions:setRebuildBindings
- Removed
Multiply2d
- Replaced by the new
scale
modifier
- Replaced by the new