Versions in this module Expand all Collapse all v0 v0.0.9 Sep 9, 2022 v0.0.8 Aug 28, 2022 v0.0.7 Aug 19, 2022 v0.0.6 Aug 15, 2022 v0.0.5 Aug 8, 2022 Changes in this version + func NewGPIOController(ctx context.Context, deps registry.Dependencies, config config.Component, ...) (interface{}, error) + type AxisConfig struct + Bidirectional bool + Control input.Control + Deadzone int + Invert bool + Max int + Min int + MinChange int + PollHz float64 + type ButtonConfig struct + Control input.Control + DebounceMs int + Invert bool + type Config struct + Axes map[string]AxisConfig + Board string + Buttons map[string]ButtonConfig + type Controller struct + func (c *Controller) Close() + func (c *Controller) GetControls(ctx context.Context) ([]input.Control, error) + func (c *Controller) GetEvents(ctx context.Context) (map[input.Control]input.Event, error) + func (c *Controller) RegisterControlCallback(ctx context.Context, control input.Control, triggers []input.EventType, ...) error v0.0.4 Jun 7, 2022 v0.0.3 May 6, 2022