Types for representing mouse and keyboard events.
Classes | |
| class | Key |
| Represents a key on the keyboard. More... | |
Enumerations | |
| enum | Mouse_button { left, middle, right } |
| A representation of a mouse button. More... | |
Functions | |
| std::ostream & | operator<< (std::ostream &, Mouse_button) |
| Prints a Mouse_button on a std::ostream. More... | |
| bool | operator== (Key a, Key b) |
| Equality for keys. | |
| bool | operator!= (Key a, Key b) |
| Disequality for keys. | |
| std::ostream & | operator<< (std::ostream &, Key::Type) |
| Prints a Key::Type on a std::ostream. More... | |
| std::ostream & | operator<< (std::ostream &, Key) |
| Prints a Key on a std::ostream. More... | |
|
strong |
A representation of a mouse button.
This is used by Abstract_game::on_mouse_down(Mouse_button, Posn<int>) and Abstract_game::on_mouse_up(Mouse_button, Posn<int>) to specify which mouse button was depressed or released.
Definition at line 19 of file ge211_event.hxx.
| std::ostream & operator<< | ( | std::ostream & | os, |
| Key | key | ||
| ) |
Prints a Key on a std::ostream.
This function prints a representation suitable for debugging, but probably not suitable for end users.
Definition at line 124 of file ge211_event.cxx.
| std::ostream & operator<< | ( | std::ostream & | os, |
| Key::Type | type | ||
| ) |
Prints a Key::Type on a std::ostream.
This function prints a representation suitable for debugging, but probably not suitable for end users.
Definition at line 118 of file ge211_event.cxx.
| std::ostream & operator<< | ( | std::ostream & | os, |
| Mouse_button | button | ||
| ) |
Prints a Mouse_button on a std::ostream.
This function prints a representation suitable for debugging, but probably not suitable for end users.
Definition at line 85 of file ge211_event.cxx.