Documentation
¶
Overview ¶
Package events manages mouse and keyboard SDL events for Doodle.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DebugMouseEvents = false DebugClickEvents = true )
Debug constants, toggle on or off for SUPER VERBOSE debugging.
Functions ¶
This section is empty.
Types ¶
type BoolTick ¶
BoolTick holds boolean state between this frame and the previous.
type State ¶
type State struct { // Mouse buttons. Button1 *BoolTick // left Button2 *BoolTick // right Button3 *BoolTick // middle EscapeKey *BoolTick EnterKey *BoolTick ShiftActive *BoolTick ControlActive *BoolTick KeyName *StringTick Up *BoolTick Left *BoolTick Right *BoolTick Down *BoolTick // Cursor positions. CursorX *Int32Tick CursorY *Int32Tick // Window events: window has changed size. Resized *BoolTick }
State keeps track of event states.
type StringTick ¶
StringTick manages strings between this frame and the previous.
func (*StringTick) Read ¶
func (s *StringTick) Read() string
Read a string state, resetting its value.
Click to show internal directories.
Click to hide internal directories.