input

package
v0.0.0-...-1e218f7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2023 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

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) OnConnect

func (h *GamepadHub) OnConnect(cl *mqtt.Client, pk packets.Packet) error

OnConnect is called when a new client connects.

func (*GamepadHub) OnPublish

func (h *GamepadHub) OnPublish(cl *mqtt.Client, pk packets.Packet) (packets.Packet, error)

/gamepad/<id>/state

func (*GamepadHub) Provides

func (h *GamepadHub) Provides(b byte) bool

func (*GamepadHub) Stop

func (h *GamepadHub) Stop() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL