-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Instead of the built-in devices we have now we could let the user create their own devices or extend the default ones we provide.
Potential API:
local device = Device.new("Keyboard")
:addControl("Space", Enum.KeyCode.Space, ButtonControl.new())
inputState:addDevice(device)Considerations:
- More boilerplate, user has to specify what devices they want.
- Is it even helpful for the user to add their own devices or extend the existing ones?
- How should the user access device's controls now?
device:get("control")ordevice.control? - Is our definition of a control good enough for it to be a public API?
- We would also need to export classes like
ButtonControlandAxis2dControl.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels