Documentation ¶
Index ¶
Constants ¶
View Source
const ( KeyUnknown = iota KeyUp KeyDown KeyLeft KeyRight KeyEsc KeySpace KeyBackSpace )
View Source
const ( KeyModNone = 0x0000 KeyModLshift = 0x0001 KeyModRshift = 0x0002 KeyModLctrl = 0x0040 KeyModRctrl = 0x0080 KeyModLalt = 0x0100 KeyModRalt = 0x0200 KeyModLgui = 0x0400 KeyModRgui = 0x0400 KeyModCaps = 0x2000 )
View Source
const ( KeyModAlt = KeyModLalt | KeyModRalt KeyModGui = KeyModLgui | KeyModRgui KeyModCtrl = KeyModLctrl | KeyModRctrl KeyModShift = KeyModLshift | KeyModRshift )
View Source
const ( MouseButtonDown = iota MouseButtonUp MouseWheel )
View Source
const ( KeyboardDown = iota KeyboardUp )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyboardEvent ¶
func (*KeyboardEvent) IsMod ¶
func (e *KeyboardEvent) IsMod(m int) bool
type MouseButtonEvent ¶
type MouseButtonEvent struct {
X, Y, Button, Type int
}
type MouseMotionEvent ¶
type MouseMotionEvent struct {
X, Y, XRel, YRel int
}
type MouseState ¶
type UnknownEvent ¶
type UnknownEvent struct{}
Click to show internal directories.
Click to hide internal directories.