mouse

package
v0.0.0-...-8e656ca Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2014 License: GPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EV_SYN       uint16 = 0x0
	EV_KEY       uint16 = 0x1
	EV_REL       uint16 = 0x2
	EV_ABS       uint16 = 0x3
	EV_MSC       uint16 = 0x4
	EV_SW        uint16 = 0x5
	EV_LED       uint16 = 0x11
	EV_SND       uint16 = 0x12
	EV_REP       uint16 = 0x14
	EV_FF        uint16 = 0x15
	EV_PWR       uint16 = 0x16
	EV_FF_STATUS uint16 = 0x17
	EV_MAX       uint16 = 0x1f
	EV_CNT       uint16 = 0x20
)
View Source
const (
	REL_X      uint16 = 0x0
	REL_Y      uint16 = 0x1
	REL_Z      uint16 = 0x2
	REL_RX     uint16 = 0x3
	REL_RY     uint16 = 0x4
	REL_RZ     uint16 = 0x5
	REL_HWHEEL uint16 = 0x6
	REL_DIAL   uint16 = 0x7
	REL_WHEEL  uint16 = 0x8
	REL_MISC   uint16 = 0x9
	REL_MAX    uint16 = 0xf
	REL_CNT    uint16 = 0x10
)
View Source
const (
	F_L_CLICK     = 1
	F_L_DBL_CLICK = 2
	F_L_HOLD      = 4
	F_L_PRESS     = 8
	F_L_RELEASE   = 16

	F_R_CLICK     = 32
	F_R_DBL_CLICK = 64
	F_R_HOLD      = 128
	F_R_PRESS     = 256
	F_R_RELEASE   = 512

	F_EL_ENTER = 1024
	F_EL_LEAVE = 2048
)
View Source
const (
	DBL_CLICK_PERIOD = 220 * 1000 * 1000 // maximum time in nanoseconds between two consecutive clicks for them

)

Variables

This section is empty.

Functions

This section is empty.

Types

type Callback

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

type Mouse

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

func Init

func Init(dev string, screenWidth int, screenHeight int, msRelease chan bool, compWait chan bool, wl *list.List) (*Mouse, error)

func (*Mouse) Close

func (ms *Mouse) Close()

func (*Mouse) CreatePointer

func (ms *Mouse) CreatePointer(fb *fbdev.Framebuffer, imp chan int64) *MousePointer

func (*Mouse) DeregisterMouse

func (ms *Mouse) DeregisterMouse(id uint64)

func (*Mouse) Process

func (ms *Mouse) Process() error

func (*Mouse) RegisterMouse

func (ms *Mouse) RegisterMouse(id uint64, fnMouse mouseHandler, fnActivate activateHandler, x *int, y *int, width, height int)

func (*Mouse) RegisterMousePointer

func (ms *Mouse) RegisterMousePointer(fnMouse mouseHandler)

type MouseMovementPacket

type MouseMovementPacket struct {
	Flags byte
	X     byte
	Y     byte
}

func (*MouseMovementPacket) BtnLeft

func (mmp *MouseMovementPacket) BtnLeft() bool

func (*MouseMovementPacket) BtnMiddle

func (mmp *MouseMovementPacket) BtnMiddle() bool

func (*MouseMovementPacket) BtnRight

func (mmp *MouseMovementPacket) BtnRight() bool

func (*MouseMovementPacket) XOverflow

func (mmp *MouseMovementPacket) XOverflow() bool

func (*MouseMovementPacket) XSign

func (mmp *MouseMovementPacket) XSign() bool

func (*MouseMovementPacket) YOverflow

func (mmp *MouseMovementPacket) YOverflow() bool

func (*MouseMovementPacket) YSign

func (mmp *MouseMovementPacket) YSign() bool

type MousePointer

type MousePointer struct {
	base.Element
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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