Holds the data that might be generated by a 2-d pointer input device, such as the mouse in the GraphicsWindow.
More...
#include <pandadoc.hpp>
|
int | id |
| Returns a unique identifier for this pointer. More...
|
|
bool | in_window |
| If this returns false, the pointer is not currently present in the window and the values returned by get_x() and get_y() may not be meaningful. More...
|
|
double | pressure |
| Returns the pressure of the pointer. More...
|
|
PointerType | type |
| Returns the type of pointing device. More...
|
|
double | x |
|
double | y |
|
Holds the data that might be generated by a 2-d pointer input device, such as the mouse in the GraphicsWindow.
◆ __init__() [1/2]
◆ __init__() [2/2]
__init__ |
( |
const |
PointerData | ) |
|
◆ getInWindow()
If this returns false, the pointer is not currently present in the window and the values returned by get_x() and get_y() may not be meaningful.
◆ getX()
◆ getY()
◆ id
Returns a unique identifier for this pointer.
This is for tracking individual fingers. This value should not be assumed to have a specific meaning other than that there will not be two different pointers active simultaneously with the same identifier.
◆ in_window
If this returns false, the pointer is not currently present in the window and the values returned by get_x() and get_y() may not be meaningful.
◆ pressure
Returns the pressure of the pointer.
For mice, this will be 1.0 if any button is pressed, 0.0 otherwise.
◆ type
Returns the type of pointing device.