device

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: Apache-2.0 Imports: 0 Imported by: 5

Documentation

Overview

Package device include device related types

Index

Constants

View Source
const (
	MouseLeftButton   = MouseButton(0) // MouseLeftButton is the left mouse button
	MouseRightButton  = MouseButton(1) // MouseRightButton is the right mouse button
	MouseMiddleButton = MouseButton(2) // MouseMiddleButton is the middle mouse button
)
View Source
const (
	FirstKey     = Key(iota) // FirstKey is the initial value for keys
	KeyLeft                  // KeyLeft if the left cursor key
	KeyRight                 // KeyRight if the right cursor key
	KeyUp                    // KeyUp if the up cursor key
	KeyDown                  // KeyDown if the down cursor key
	KeySpace                 // KeySpace if the space cursor key
	KeyAltLeft               // KeySpace if the left alt key
	KeyCtrlLeft              // KeyCtrlLeft if the left control key
	KeyAltRight              // KeyAltRight if the right alt key
	KeyCtrlRight             // KeyCtrlRight if the right control key
	TotalKeys                // TotalKeys is the total number of keys
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

type Key int

Key represents a device key

type MouseButton

type MouseButton int

MouseButton indicates a mouse button

Jump to

Keyboard shortcuts

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