#include <Touch.hpp>
|
static bool | isDown (const int id=0) |
| Check if touch is currently down. More...
|
|
static glm::vec2 | getPosition (const int id=0) |
| Get position of a specific touch. More...
|
|
Definition at line 34 of file Touch.hpp.
Information
Enumerator |
---|
Pressure |
Approximate pressure applied to the surface.
|
Size |
Approximate size of the contact area.
|
TouchMajor |
Major axis of an ellipse that represents the touch area at the point of contact.
|
ToolMajor |
Major axis of an ellipse that represents the size of the approaching touch.
|
Definition at line 40 of file Touch.hpp.
static glm::vec2 jop::Touch::getPosition |
( |
const int |
id = 0 | ) |
|
|
static |
Get position of a specific touch.
- Parameters
-
- Returns
- Touch position, [-1, -1] if the touch is not down
static bool jop::Touch::isDown |
( |
const int |
id = 0 | ) |
|
|
static |
Check if touch is currently down.
- Parameters
-
- Returns
- True if the touch is down
The documentation for this class was generated from the following file: