PointerData

from panda3d.core import PointerData
class PointerData

Bases:

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__()
__init__(param0: PointerData)
get_in_window() bool

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.

get_x() float
get_y() float
property id int

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.

property in_window bool

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.

property pressure float

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

property type PointerType

Returns the type of pointing device.

property x float
property y float