Bare Metal Programming Tool Kit
|
something that the users caused to happen on the screen More...
#include <graphics.h>
Public Member Functions | |
event (const vector p, const event_type e) | |
creates an event from its location and type | |
vector | location_get () const |
get the location | |
event_type | event_type_get () const |
get the event_type | |
Related Functions | |
(Note that these are not member functions.) | |
enum | event_type { event_none, event_exit, event_down, event_touch, event_up, event_click } |
types of events More... | |
const char * | event_type_name (const event_type e) |
std::ostream & | operator<< (std::ostream &s, const event_type &e) |
std::ostream & | operator<< (std::ostream &s, const event &e) |
prints an event | |
something that the users caused to happen on the screen
An event is a something that happens at a specific position on a screen. A typical event would be the user touching the screen with a stylus, or clicking on a certain position with a mouse.
When a user
the following events will be generated in this order:
The last event (click) will only be generated if the down and the touch ocurred within rapid succession.
Definition at line 550 of file graphics.h.
|
related |
types of events
This type represents an action the user performs on the screen, using a mouse or stylus (on a touch screen).
Definition at line 461 of file graphics.h.
|
related |
return the name of an event_type
|
related |
prints the name of an event_type
|
related |
prints an event
Example:
touch:(47,120)