input

package
v0.0.0-...-0b604ad Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: GPL-3.0 Imports: 14 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gamepad

type Gamepad struct {
	Name    string
	EvDev   string
	JsDev   string
	SysFs   string
	Product string
	Vendor  string
	Mac     string
	Battery int
}

func GetGamepads

func GetGamepads() ([]Gamepad, error)

Return a list of all connected gamepads.

type Keyboard

type Keyboard struct {
	Device uinput.Keyboard
}

func NewKeyboard

func NewKeyboard() (Keyboard, error)

func (*Keyboard) Back

func (k *Keyboard) Back()

func (*Keyboard) Cancel

func (k *Keyboard) Cancel()

func (*Keyboard) ChangeBackground

func (k *Keyboard) ChangeBackground()

func (*Keyboard) Close

func (k *Keyboard) Close()

func (*Keyboard) Combo

func (k *Keyboard) Combo(keys ...int)

func (*Keyboard) ComputerOsd

func (k *Keyboard) ComputerOsd()

func (*Keyboard) Confirm

func (k *Keyboard) Confirm()

func (*Keyboard) Console

func (k *Keyboard) Console()

func (*Keyboard) CoreSelect

func (k *Keyboard) CoreSelect()

func (*Keyboard) Down

func (k *Keyboard) Down()

func (*Keyboard) ExitConsole

func (k *Keyboard) ExitConsole()

func (*Keyboard) KeyDown

func (k *Keyboard) KeyDown(key int)

func (*Keyboard) KeyUp

func (k *Keyboard) KeyUp(key int)

func (*Keyboard) Left

func (k *Keyboard) Left()

func (*Keyboard) Menu

func (k *Keyboard) Menu()

func (*Keyboard) Osd

func (k *Keyboard) Osd()

func (*Keyboard) PairBluetooth

func (k *Keyboard) PairBluetooth()

func (*Keyboard) Press

func (k *Keyboard) Press(key int)

func (*Keyboard) RawScreenshot

func (k *Keyboard) RawScreenshot()

func (*Keyboard) Reset

func (k *Keyboard) Reset()

func (*Keyboard) Right

func (k *Keyboard) Right()

func (*Keyboard) Screenshot

func (k *Keyboard) Screenshot()

func (*Keyboard) ToggleCoreDates

func (k *Keyboard) ToggleCoreDates()

func (*Keyboard) Up

func (k *Keyboard) Up()

func (*Keyboard) User

func (k *Keyboard) User()

func (*Keyboard) VolumeDown

func (k *Keyboard) VolumeDown()

func (*Keyboard) VolumeMute

func (k *Keyboard) VolumeMute()

func (*Keyboard) VolumeUp

func (k *Keyboard) VolumeUp()

Jump to

Keyboard shortcuts

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