input

package
v2.0.30 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2020 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAbsPositionEvent added in v2.0.16

func NewAbsPositionEvent(position gopi.Point, code gopi.KeyCode, ts time.Duration) *event

func NewKeyEvent added in v2.0.16

func NewKeyEvent(action gopi.KeyAction, code gopi.KeyCode, state gopi.KeyState, scancode uint32, ts time.Duration) *event

func NewRelPositionEvent added in v2.0.16

func NewRelPositionEvent(rel gopi.Point, position gopi.Point, ts time.Duration) *event

Types

type Device added in v2.0.16

type Device struct {
	Id        uint
	Exclusive bool
	Bus       gopi.Bus
}

func (Device) Name added in v2.0.16

func (Device) Name() string

func (Device) New added in v2.0.16

func (config Device) New(log gopi.Logger) (gopi.Unit, error)

type InputManager

type InputManager struct {
	FilePoll gopi.FilePoll
	Bus      gopi.Bus
}

func (InputManager) Name

func (InputManager) Name() string

func (InputManager) New

func (config InputManager) New(log gopi.Logger) (gopi.Unit, error)

type State added in v2.0.16

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

func (*State) Decode added in v2.0.16

func (this *State) Decode(evt linux.EVEvent) *event

func (*State) DecodeAbs added in v2.0.16

func (this *State) DecodeAbs(evt linux.EVEvent)

func (*State) DecodeKey added in v2.0.16

func (this *State) DecodeKey(evt linux.EVEvent)

func (*State) DecodeMsc added in v2.0.16

func (this *State) DecodeMsc(evt linux.EVEvent)

func (*State) DecodeRel added in v2.0.16

func (this *State) DecodeRel(evt linux.EVEvent)

func (*State) DecodeSyn added in v2.0.16

func (this *State) DecodeSyn(evt linux.EVEvent) *event

func (*State) KeyState added in v2.0.16

func (this *State) KeyState() gopi.KeyState

func (*State) Position added in v2.0.16

func (this *State) Position() gopi.Point

func (*State) Reset added in v2.0.16

func (this *State) Reset(ledstate []linux.EVLEDState)

func (*State) SetPosition added in v2.0.16

func (this *State) SetPosition(pt gopi.Point)

Jump to

Keyboard shortcuts

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