Documentation ¶
Overview ¶
Package event contains the types for event handling.
The Queue interface is the protocol for receiving external events.
For example:
var queue event.Queue = ... for _, e := range queue.Events(h) { switch e.(type) { ... } }
In general, handlers must be declared before events become available. Other packages such as pointer and key provide the means for declaring handlers for specific event types.
The following example declares a handler ready for key input:
import github.com/cybriq/giocore/io/key ops := new(op.Ops) var h *Handler = ... key.InputOp{Tag: h}.Add(ops)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.