Panda3D
Public Member Functions | Public Attributes | List of all members
PointerData Class Reference

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

Public Member Functions

 __init__ ()
 
 __init__ (const PointerData)
 
bool 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. More...
 
double getX ()
 
double getY ()
 

Public Attributes

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
 

Detailed Description

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

Member Function Documentation

◆ __init__() [1/2]

__init__ ( )

◆ __init__() [2/2]

__init__ ( const  PointerData)

◆ getInWindow()

bool 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()

double getX ( )

◆ getY()

double getY ( )

Member Data Documentation

◆ id

int 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

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.

◆ pressure

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

◆ x

double x

◆ y

double y