//
pkg.gl
Category
github.com/oakmound/oak/v4
key
package
4.1.1
Repository:
https://github.com/oakmound/oak.git
Documentation:
pkg.go.dev
Versions
4
Dependencies
4
Dependents
16
Files
380 SLOC
#
Functions
Down
Held
NewState
NewState creates a state object for tracking keyboard state.
Up
Up checks.
#
Constants
A
Apostrophe
B
Backslash
C
CapsLock
Comma
Compose
D
DeleteBackspace
DeleteForward
DirNone
DirPress
DirRelease
DownArrow
E
End
EqualSign
Escape
F
F1
F10
F11
F12
F13
F14
F15
F16
F17
F18
F19
F2
F20
F21
F22
F23
F24
F3
F4
F5
F6
F7
F8
F9
FullStop
G
GraveAccent
H
Help
Home
HyphenMinus
I
Insert
J
K
Keypad0
Keypad1
Keypad2
Keypad3
Keypad4
Keypad5
Keypad6
Keypad7
Keypad8
Keypad9
KeypadAsterisk
KeypadEnter
KeypadEqualSign
KeypadFullStop
KeypadHyphenMinus
KeypadNumLock
KeypadPlusSign
KeypadSlash
L
LeftAlt
LeftArrow
LeftControl
LeftGUI
LeftShift
LeftSquareBracket
M
ModAlt
ModControl
ModMeta
called "Command" on OS X.
ModShift
Mute
N
Num0
Num1
Num2
Num3
Num4
Num5
Num6
Num7
Num8
Num9
O
P
PageDown
PageUp
Pause
Q
R
ReturnEnter
RightAlt
RightArrow
RightControl
RightGUI
RightShift
RightSquareBracket
S
Semicolon
Slash
Spacebar
T
Tab
U
Unknown
UpArrow
V
VolumeDown
VolumeUp
W
X
Y
Z
#
Variables
AllKeys
AllKeys is the set of all defined key codes.
AnyDown
Down is sent when a key is pressed.
AnyHeld
Held is sent when a key is held down.
AnyUp
Up is sent when a key is released.
#
Structs
State
A State tracks what keys of a keyboard are currently pressed and for how long they have been pressed if they are held down.
#
Type aliases
Code
Code is the identity of a key relative to a notional "standard" keyboard.
Direction
Event
An Event is sent as the payload for all key bindings.
Modifiers