|
coastline 0.0.4
|
An event of the keyboard or the mouse. More...
#include <setupwizard.h>

Public Types | |
| enum class | Type { Key , Text , Accelerator , MouseDown , MouseUp , MouseMove , Wheel } |
| The kind of event. More... | |
Public Attributes | |
| Type | type = Type::Key |
| WizardKey | key = WizardKey::Tab |
| bool | shift = false |
| std::string | text |
| char | letter = 0 |
| int | x = 0 |
| int | y = 0 |
| int | wheel = 0 |
| std::uint64_t | milliseconds = 0 |
An event of the keyboard or the mouse.
|
strong |
| WizardKey coastline::WizardEvent::key = WizardKey::Tab |
The key of a Key event.
| bool coastline::WizardEvent::shift = false |
Whether Shift is pressed with the key.
| std::string coastline::WizardEvent::text |
The UTF-8 text of a Text event.
| char coastline::WizardEvent::letter = 0 |
The lowercase letter of an Accelerator event.
| int coastline::WizardEvent::x = 0 |
The mouse across the 640 by 400 grid, in pixels.
| int coastline::WizardEvent::y = 0 |
The mouse down the 640 by 400 grid, in pixels.
| int coastline::WizardEvent::wheel = 0 |
The notches of a Wheel event, above 0 away from the user.
| std::uint64_t coastline::WizardEvent::milliseconds = 0 |
The time of the event, for double-clicks and typing.