FPLBase
An open source project by FPL.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
fplbase::InputPointer Class Reference

Stores information about the current and recent state of a pointer. More...

#include <input.h>

Detailed Description

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...
 

Member Data Documentation

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.


The documentation for this class was generated from the following file: