FPLBase
An open source project by
FPL.
|
Stores information about the current and recent state of a pointer. More...
#include <input.h>
Stores information about the current and recent state of a pointer.
An input pointer represents either a finger-touch on a touchscreen device, or a mouse-pointer.
Public Attributes | |
FingerId | id |
The pointer's ID. More... | |
mathfu::vec2i | mousepos |
The position of the pointer, in pixels. | |
mathfu::vec2i | mousedelta |
The amount the pointer moved since the last update. | |
bool | used |
Whether this particular pointer is in use. More... | |
FingerId fplbase::InputPointer::id |
The pointer's ID.
The mouse pointer always has a pointerID of 0. For fingertouches, they are generally allocated in order as new touches happen.
bool fplbase::InputPointer::used |
Whether this particular pointer is in use.
When used is false, the pointer data is in an undefined state and should be ignored.