xinput

package
v1.6.18 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

custom xf86 input driver communication protocol

Index

Constants

View Source
const (
	// absolute coordinates used in driver
	AbsX = 0xffff
	AbsY = 0xffff
)
View Source
const (
	XI_TouchBegin  = 18
	XI_TouchUpdate = 19
	XI_TouchEnd    = 20
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver interface {
	Connect() error
	Close() error
	// release touches, that were not updated for duration
	Debounce(duration time.Duration)
	// touch events
	TouchBegin(touchId uint32, x, y int, pressure uint8) error
	TouchUpdate(touchId uint32, x, y int, pressure uint8) error
	TouchEnd(touchId uint32, x, y int, pressure uint8) error
}

func NewDriver

func NewDriver(socket string) Driver

func NewDummy

func NewDummy() Driver

type Message

type Message struct {
	// contains filtered or unexported fields
}

func (*Message) Pack

func (msg *Message) Pack() []byte

func (*Message) Unpack

func (msg *Message) Unpack(buffer []byte)

Jump to

Keyboard shortcuts

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