buttons

package
v0.0.0-...-4a1a6b8 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package buttons describes the supported button masks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mask

func Mask(button Button) uint8

Types

type Button

type Button uint8

Button represents a mask of pointer presses/releases.

const (
	Left Button = 1 << iota
	Middle
	Right
	Four
	Five
	Six
	Seven
	Eight
	None Button = 0
)

All available button mask components.

func (Button) String

func (i Button) String() string

Jump to

Keyboard shortcuts

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