key

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Unknown     = Key(glfw.KeyUnknown)        //
	Mouse1      = Key(glfw.MouseButton1)      //
	Mouse2      = Key(glfw.MouseButton2)      //
	Mouse3      = Key(glfw.MouseButton3)      //
	Mouse4      = Key(glfw.MouseButton4)      //
	Mouse5      = Key(glfw.MouseButton5)      //
	Mouse6      = Key(glfw.MouseButton6)      //
	Mouse7      = Key(glfw.MouseButton7)      //
	Mouse8      = Key(glfw.MouseButton8)      //
	MouseLast   = Key(glfw.MouseButtonLast)   //
	MouseLeft   = Key(glfw.MouseButtonLeft)   //
	MouseRight  = Key(glfw.MouseButtonRight)  //
	MouseMiddle = Key(glfw.MouseButtonMiddle) //
	Space       = Key(glfw.KeySpace)          //
	Apostrophe  = Key(glfw.KeyApostrophe)     // '
	Comma       = Key(glfw.KeyComma)          // ,
	Minus       = Key(glfw.KeyMinus)          // -
	Period      = Key(glfw.KeyPeriod)         // .
	Slash       = Key(glfw.KeySlash)          // /

	Semicolon    = Key(glfw.KeySemicolon)    // ;
	Equal        = Key(glfw.KeyEqual)        // =
	A            = Key(glfw.KeyA)            //
	B            = Key(glfw.KeyB)            //
	C            = Key(glfw.KeyC)            //
	D            = Key(glfw.KeyD)            //
	E            = Key(glfw.KeyE)            //
	F            = Key(glfw.KeyF)            //
	G            = Key(glfw.KeyG)            //
	H            = Key(glfw.KeyH)            //
	I            = Key(glfw.KeyI)            //
	J            = Key(glfw.KeyJ)            //
	K            = Key(glfw.KeyK)            //
	L            = Key(glfw.KeyL)            //
	M            = Key(glfw.KeyM)            //
	N            = Key(glfw.KeyN)            //
	O            = Key(glfw.KeyO)            //
	P            = Key(glfw.KeyP)            //
	Q            = Key(glfw.KeyQ)            //
	R            = Key(glfw.KeyR)            //
	S            = Key(glfw.KeyS)            //
	T            = Key(glfw.KeyT)            //
	U            = Key(glfw.KeyU)            //
	V            = Key(glfw.KeyV)            //
	W            = Key(glfw.KeyW)            //
	X            = Key(glfw.KeyX)            //
	Y            = Key(glfw.KeyY)            //
	Z            = Key(glfw.KeyZ)            //
	LeftBracket  = Key(glfw.KeyLeftBracket)  // [
	Backslash    = Key(glfw.KeyBackslash)    // \
	RightBracket = Key(glfw.KeyRightBracket) // ]
	GraveAccent  = Key(glfw.KeyGraveAccent)  // `
	World1       = Key(glfw.KeyWorld1)       // non-US #1
	World2       = Key(glfw.KeyWorld2)       // non-US #2
	Escape       = Key(glfw.KeyEscape)       //
	Enter        = Key(glfw.KeyEnter)        //
	Tab          = Key(glfw.KeyTab)          //
	Backspace    = Key(glfw.KeyBackspace)    //
	Insert       = Key(glfw.KeyInsert)       //
	Delete       = Key(glfw.KeyDelete)       //
	Right        = Key(glfw.KeyRight)        //
	Left         = Key(glfw.KeyLeft)         //
	Down         = Key(glfw.KeyDown)         //
	Up           = Key(glfw.KeyUp)           //
	PageUp       = Key(glfw.KeyPageUp)       //
	PageDown     = Key(glfw.KeyPageDown)     //
	Home         = Key(glfw.KeyHome)         //
	End          = Key(glfw.KeyEnd)          //
	CapsLock     = Key(glfw.KeyCapsLock)     //
	ScrollLock   = Key(glfw.KeyScrollLock)   //
	NumLock      = Key(glfw.KeyNumLock)      //
	PrintScreen  = Key(glfw.KeyPrintScreen)  //
	Pause        = Key(glfw.KeyPause)        //
	F1           = Key(glfw.KeyF1)           //
	F2           = Key(glfw.KeyF2)           //
	F3           = Key(glfw.KeyF3)           //
	F4           = Key(glfw.KeyF4)           //
	F5           = Key(glfw.KeyF5)           //
	F6           = Key(glfw.KeyF6)           //
	F7           = Key(glfw.KeyF7)           //
	F8           = Key(glfw.KeyF8)           //
	F9           = Key(glfw.KeyF9)           //
	F10          = Key(glfw.KeyF10)          //
	F11          = Key(glfw.KeyF11)          //
	F12          = Key(glfw.KeyF12)          //
	F13          = Key(glfw.KeyF13)          //
	F14          = Key(glfw.KeyF14)          //
	F15          = Key(glfw.KeyF15)          //
	F16          = Key(glfw.KeyF16)          //
	F17          = Key(glfw.KeyF17)          //
	F18          = Key(glfw.KeyF18)          //
	F19          = Key(glfw.KeyF19)          //
	F20          = Key(glfw.KeyF20)          //
	F21          = Key(glfw.KeyF21)          //
	F22          = Key(glfw.KeyF22)          //
	F23          = Key(glfw.KeyF23)          //
	F24          = Key(glfw.KeyF24)          //
	F25          = Key(glfw.KeyF25)          //
	LeftShift    = Key(glfw.KeyLeftShift)    //
	LeftControl  = Key(glfw.KeyLeftControl)  //
	LeftAlt      = Key(glfw.KeyLeftAlt)      //
	LeftSuper    = Key(glfw.KeyLeftSuper)    //
	RightShift   = Key(glfw.KeyRightShift)   //
	RightControl = Key(glfw.KeyRightControl) //
	RightAlt     = Key(glfw.KeyRightAlt)     //
	RightSuper   = Key(glfw.KeyRightSuper)   //
	Menu         = Key(glfw.KeyMenu)         //
	Last         = Key(glfw.KeyMenu)         //
)

all key constants

Variables

View Source
var Names = map[Key]string{
	// contains filtered or unexported fields

}/* 102 elements not displayed */

Names is helper for Key.String() method

Functions

This section is empty.

Types

type Key

type Key int

Key can be any key, keyboard or mouse

func (Key) String

func (k Key) String() string

Directories

Path Synopsis
Package binding implements simple B system on top of window input methods
Package binding implements simple B system on top of window input methods

Jump to

Keyboard shortcuts

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