evdev

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device struct {
	Name                              string
	BusType, Vendor, Product, Version uint16
	// contains filtered or unexported fields
}

func Open

func Open(path string) (*Device, error)

func (*Device) Close

func (d *Device) Close() error

func (*Device) HasEventCode

func (d *Device) HasEventCode(t, code uint16) bool

func (*Device) HasEventType

func (d *Device) HasEventType(t uint16) bool

func (*Device) NextEvent

func (d *Device) NextEvent() (InputEvent, error)

type InputEvent

type InputEvent struct {
	Type  uint16
	Code  uint16
	Value int32
}

func (InputEvent) Is

func (ev InputEvent) Is(t, code uint16) bool

Jump to

Keyboard shortcuts

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