Module gg::event [] [src]

The event module TODO: Expand

Modules

step

A collection of methods meant to make it easy to get a quick and dirty event loop going.

Structs

Keys

Holds state about the currently pressed buttons as well as buttons that just have been pressed and those that are released. Sequence is as follows: 1. Released 2. Press 3. Pressed 4. Release 5. goto: 1

Enums

KeyCode
KeyState

An enum allowing us to communicate what state a given Key is at. The f64 in each variant tells you since when the key was last pressed. A value of 0 indicating that it has never been pressed.

StepResult

A StepResult should be returned by the closure given to one of the step functions.

Implementations