linuxinput

package
v2.20.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2026 License: GPL-3.0 Imports: 3 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package linuxinput creates the uinput virtual devices the input engine drives on Linux. The devices it returns satisfy the engine's keyboard and gamepad backend interfaces directly; key and button name resolution lives in the platform-neutral keyboardmap and gamepadmap packages.

Index

Constants

View Source
const (
	DeviceName = "Zaparoo"
)

Variables

This section is empty.

Functions

func NewGamepad

func NewGamepad() (uinput.Gamepad, error)

NewGamepad returns a uinput virtual gamepad device. It must be closed when the service stops.

func NewKeyboard

func NewKeyboard() (uinput.Keyboard, error)

NewKeyboard returns a uinput virtual keyboard device. It must be closed when the service stops.

Types

This section is empty.

Directories

Path Synopsis
Package gamepadmap holds the ZapScript gamepad button names and the raw evdev button codes they resolve to.
Package gamepadmap holds the ZapScript gamepad button names and the raw evdev button codes they resolve to.

Jump to

Keyboard shortcuts

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