Documentation ¶
Index ¶
- Constants
- type Callback
- type Mouse
- func (ms *Mouse) Close()
- func (ms *Mouse) CreatePointer(fb *fbdev.Framebuffer, imp chan int64) *MousePointer
- func (ms *Mouse) DeregisterMouse(id uint64)
- func (ms *Mouse) Process() error
- func (ms *Mouse) RegisterMouse(id uint64, fnMouse mouseHandler, fnActivate activateHandler, x *int, y *int, ...)
- func (ms *Mouse) RegisterMousePointer(fnMouse mouseHandler)
- type MouseMovementPacket
- func (mmp *MouseMovementPacket) BtnLeft() bool
- func (mmp *MouseMovementPacket) BtnMiddle() bool
- func (mmp *MouseMovementPacket) BtnRight() bool
- func (mmp *MouseMovementPacket) XOverflow() bool
- func (mmp *MouseMovementPacket) XSign() bool
- func (mmp *MouseMovementPacket) YOverflow() bool
- func (mmp *MouseMovementPacket) YSign() bool
- type MousePointer
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 Mouse ¶
type Mouse struct {
// contains filtered or unexported fields
}
func (*Mouse) CreatePointer ¶
func (ms *Mouse) CreatePointer(fb *fbdev.Framebuffer, imp chan int64) *MousePointer
func (*Mouse) DeregisterMouse ¶
func (*Mouse) RegisterMouse ¶
func (*Mouse) RegisterMousePointer ¶
func (ms *Mouse) RegisterMousePointer(fnMouse mouseHandler)
type MouseMovementPacket ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.