Spark Changelog
Unreleased Changes
0.3.1 - May 25, 2025
- Added types for
Actions:setAssociatedGamepadandActions: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
.luauextension 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:valuetoActions:axis - Renamed
Actions:movetoActions:moveAxis2d Actions:updatenow only takesInputState
- Added
- Added
Rebind:setRetainInput - Added modifiers via
Bind:addModifiersandActionConfig:addModifiersdeadZoneandscalemodifiers
- Added
getDeviceFromInput - Removed
InputMapassociatedGamepadis replaced byActions:setAssociatedGamepadandActions:removeAssociatedGamepadgetByDevicesis replaced byActions:getInputsByDevices- Binding is now done via
Actions:setRebuildBindings
- Removed
Multiply2d- Replaced by the new
scalemodifier
- Replaced by the new