Documentation ¶
Overview ¶
Package gamepad implements a linux gamepad as an input controller.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { DevFile string `json:"dev_file,omitempty"` AutoReconnect bool `json:"auto_reconnect,omitempty"` }
Config is used for converting config attributes.
type Mapping ¶
type Mapping struct { Buttons map[evdev.KeyType]input.Control Axes map[evdev.AbsoluteType]input.Control }
Mapping represents the evdev code to input.Control mapping for a given gamepad model.
func MappingForModel ¶ added in v0.2.35
MappingForModel returns the mapping for a given model.
Click to show internal directories.
Click to hide internal directories.