Documentation ¶
Index ¶
- Variables
- type GamepadHub
- func (h *GamepadHub) Close() error
- func (h *GamepadHub) GetGamepads() []*gamepad.VirtualGamepad
- func (h *GamepadHub) ID() string
- func (h *GamepadHub) Init(config any) error
- func (h *GamepadHub) OnConnect(cl *mqtt.Client, pk packets.Packet) error
- func (h *GamepadHub) OnPublish(cl *mqtt.Client, pk packets.Packet) (packets.Packet, error)
- func (h *GamepadHub) Provides(b byte) bool
- func (h *GamepadHub) Stop() error
Constants ¶
This section is empty.
Variables ¶
View Source
var MAX_GAMEPADS int = 4
Functions ¶
This section is empty.
Types ¶
type GamepadHub ¶
type GamepadHub struct { VendorId uint16 DeviceId uint16 mqtt.HookBase // contains filtered or unexported fields }
func NewGamepadHub ¶
func NewGamepadHub() *GamepadHub
func (*GamepadHub) Close ¶
func (h *GamepadHub) Close() error
func (*GamepadHub) GetGamepads ¶
func (h *GamepadHub) GetGamepads() []*gamepad.VirtualGamepad
func (*GamepadHub) ID ¶
func (h *GamepadHub) ID() string
func (*GamepadHub) Init ¶
func (h *GamepadHub) Init(config any) error
func (*GamepadHub) Provides ¶
func (h *GamepadHub) Provides(b byte) bool
func (*GamepadHub) Stop ¶
func (h *GamepadHub) Stop() error
Click to show internal directories.
Click to hide internal directories.