Documentation
¶
Overview ¶
Package uinput creates virtual input devices through /dev/uinput.
Index ¶
Constants ¶
const DevicePath = "/dev/uinput"
DevicePath is the uinput node.
const FFEffectsMax = 16
FFEffectsMax is how many force-feedback effects a device holds at once.
const PropDirect = 0x01
Input properties.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Name string
Bus, Vendor, Product uint16
Version uint16
Keys []uint16
Rels []uint16
Abs []AbsAxis
Props []uint16
// Rumble gives the device force feedback of type FF_RUMBLE.
Rumble bool
}
Config describes a device to create.
type Device ¶
type Device struct {
// contains filtered or unexported fields
}
Device is a created virtual device. Emit and Close are safe from any goroutine.
type RumbleFunc ¶
type RumbleFunc func(strong, weak uint16)
RumbleFunc receives a game's rumble on the device, strengths 0..65535; both zero stops it.