panda3d.core.PointerData

from panda3d.core import PointerData
class PointerData

Holds the data that might be generated by a 2-d pointer input device, such as the mouse in the GraphicsWindow.

Inheritance diagram

Inheritance diagram of PointerData

__init__() → None
__init__(param0: PointerData) → None
getX() → float
getY() → float
getInWindow() → bool

If this returns false, the pointer is not currently present in the window and the values returned by getX() and getY() may not be meaningful.

property x
Return type

float

property y
Return type

float

property type

Returns the type of pointing device.

Return type

PointerType

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

Return type

int

property in_window

If this returns false, the pointer is not currently present in the window and the values returned by getX() and getY() may not be meaningful.

Return type

bool

property pressure

Returns the pressure of the pointer. For mice, this will be 1.0 if any button is pressed, 0.0 otherwise.

Return type

float