type Event
import Base85# Key is a key, pressed or let go. Text is what the keys typed, after
86# Shift, Caps Lock, the layout and any input method: never a control
87# character, so Enter or Backspace come only as Keys. A long input method
88# commit can come as several Texts.
89type Event is Data:
90 Key{code: U32, down: Bool}
91 Text{text: String}
92 Mouse{x: U32, y: U32, button: U32, down: Bool}
93 Move{x: U32, y: U32}
94 Look{dx: F32, dy: F32}
95 Scroll{x: U32, y: U32, dx: F32, dy: F32}
96 Close{}