io/event: move event types from package ui to its own package

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-09-30 15:13:25 +02:00
parent 7a259e68f7
commit e7a97bf176
16 changed files with 107 additions and 94 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ A pointer is either a mouse controlled cursor or a touch
object such as a finger.
The InputOp operation is used to declare a handler ready for pointer
events. Use a ui.Queue to receive events.
events. Use an event.Queue to receive events.
Areas
+3 -2
View File
@@ -7,9 +7,10 @@ import (
"image"
"time"
"gioui.org/ui"
"gioui.org/f32"
"gioui.org/internal/opconst"
"gioui.org/io/event"
"gioui.org/ui"
)
// Event is a pointer event.
@@ -63,7 +64,7 @@ type areaOp struct {
// InputOp declares an input handler ready for pointer
// events.
type InputOp struct {
Key ui.Key
Key event.Key
// Grab, if set, request that the handler get
// Grabbed priority.
Grab bool