inputcontrol

package
v0.0.0-...-0249665 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Controllers []ControllerInfo

Functions

func RegisterController

func RegisterController(name string, init func() (Controller, error), priority int)

Types

type Controller

type Controller interface {
	Close() error
	KeyboardText(text string) error
	KeyboardKey(key Key) error
	PointerButton(button PointerButton, press bool) error
	PointerMove(deltaX, deltaY int) error
	PointerScroll(deltaHorizontal, deltaVertical int, finish bool) error
}

type ControllerInfo

type ControllerInfo struct {
	Name string
	Init func() (Controller, error)
	// contains filtered or unexported fields
}

type Key

type Key int
const (
	KeyVolumeMute Key = iota
	KeyVolumeDown
	KeyVolumeUp
	KeyMediaPlayPause
	KeyMediaPrevTrack
	KeyMediaNextTrack
	KeyBrowserBack
	KeyBrowserForward
	KeySuper
	KeyLeft
	KeyRight
	KeyUp
	KeyDown
	KeyHome
	KeyEnd
	KeyBackSpace
	KeyDelete
	KeyReturn
	KeyLimit
)

type PointerButton

type PointerButton int
const (
	PointerButtonLeft PointerButton = iota
	PointerButtonRight
	PointerButtonMiddle
	PointerButtonLimit
)

type UnsupportedPlatformError

type UnsupportedPlatformError struct {
	Err error
}

func (*UnsupportedPlatformError) Error

func (e *UnsupportedPlatformError) Error() string

func (*UnsupportedPlatformError) Unwrap

func (e *UnsupportedPlatformError) Unwrap() error

Jump to

Keyboard shortcuts

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