PointerEventList
from panda3d.core import PointerEventList
- class PointerEventList
- Bases: - ParamValueBase- Records a set of pointer events that happened recently. This class is usually used only in the data graph, to transmit the recent pointer presses, but it may be used anywhere a list of PointerEvents is desired. - Inheritance diagram - __init__(*args, **kwargs)
 - addEvent()
- C++ Interface: add_event(const PointerEventList self, const PointerData data, int seq, double time) add_event(const PointerEventList self, bool in_win, int xpos, int ypos, int seq, double time) add_event(const PointerEventList self, bool in_win, int xpos, int ypos, double xdelta, double ydelta, int seq, double time) 
 - add_event()
- C++ Interface: add_event(const PointerEventList self, const PointerData data, int seq, double time) add_event(const PointerEventList self, bool in_win, int xpos, int ypos, int seq, double time) add_event(const PointerEventList self, bool in_win, int xpos, int ypos, double xdelta, double ydelta, int seq, double time) 
 - clear()
- C++ Interface: clear(const PointerEventList self) - /**
- Empties all the events from the list. 
 - */ 
 
 - encircles()
- C++ Interface: encircles(PointerEventList self, int x, int y) - /**
- Returns true if the trail loops around the specified point. 
 - */ 
 
 - getClassType()
- C++ Interface: get_class_type() 
 - getDirection()
- C++ Interface: get_direction(PointerEventList self, int n) - /**
- Get the direction of the nth event. 
 - */ 
 
 - getDx()
- C++ Interface: get_dx(PointerEventList self, int n) - /**
- Get the x-delta of the nth event. 
 - */ 
 
 - getDy()
- C++ Interface: get_dy(PointerEventList self, int n) - /**
- Get the y-delta of the nth event. 
 - */ 
 
 - getInWindow()
- C++ Interface: get_in_window(PointerEventList self, int n) - /**
- Get the in-window flag of the nth event. 
 - */ 
 
 - getLength()
- C++ Interface: get_length(PointerEventList self, int n) - /**
- Get the length of the nth event. 
 - */ 
 
 - getNumEvents()
- C++ Interface: get_num_events(PointerEventList self) - /**
- Returns the number of events in the list. 
 - */ 
 
 - getRotation()
- C++ Interface: get_rotation(PointerEventList self, int n) - /**
- Get the rotation of the nth event. 
 - */ 
 
 - getSequence()
- C++ Interface: get_sequence(PointerEventList self, int n) - /**
- Get the sequence number of the nth event. 
 - */ 
 
 - getTime()
- C++ Interface: get_time(PointerEventList self, int n) - /**
- Get the timestamp of the nth event. 
 - */ 
 
 - getXpos()
- C++ Interface: get_xpos(PointerEventList self, int n) - /**
- Get the x-coordinate of the nth event. 
 - */ 
 
 - getYpos()
- C++ Interface: get_ypos(PointerEventList self, int n) - /**
- Get the y-coordinate of the nth event. 
 - */ 
 
 - get_class_type()
- C++ Interface: get_class_type() 
 - get_direction()
- C++ Interface: get_direction(PointerEventList self, int n) - /**
- Get the direction of the nth event. 
 - */ 
 
 - get_dx()
- C++ Interface: get_dx(PointerEventList self, int n) - /**
- Get the x-delta of the nth event. 
 - */ 
 
 - get_dy()
- C++ Interface: get_dy(PointerEventList self, int n) - /**
- Get the y-delta of the nth event. 
 - */ 
 
 - get_in_window()
- C++ Interface: get_in_window(PointerEventList self, int n) - /**
- Get the in-window flag of the nth event. 
 - */ 
 
 - get_length()
- C++ Interface: get_length(PointerEventList self, int n) - /**
- Get the length of the nth event. 
 - */ 
 
 - get_num_events()
- C++ Interface: get_num_events(PointerEventList self) - /**
- Returns the number of events in the list. 
 - */ 
 
 - get_rotation()
- C++ Interface: get_rotation(PointerEventList self, int n) - /**
- Get the rotation of the nth event. 
 - */ 
 
 - get_sequence()
- C++ Interface: get_sequence(PointerEventList self, int n) - /**
- Get the sequence number of the nth event. 
 - */ 
 
 - get_time()
- C++ Interface: get_time(PointerEventList self, int n) - /**
- Get the timestamp of the nth event. 
 - */ 
 
 - get_xpos()
- C++ Interface: get_xpos(PointerEventList self, int n) - /**
- Get the x-coordinate of the nth event. 
 - */ 
 
 - get_ypos()
- C++ Interface: get_ypos(PointerEventList self, int n) - /**
- Get the y-coordinate of the nth event. 
 - */ 
 
 - matchPattern()
- C++ Interface: match_pattern(const PointerEventList self, str pattern, double rot, double seglen) - /**
- This function is not implemented yet. It is a work in progress. The 
- intent is as follows: 
- Returns a nonzero value if the mouse movements match the specified pattern. 
- The higher the value, the better the match. The pattern is a sequence of 
- compass directions (ie, “E”, “NE”, etc) separated by spaces. If rot is 
- nonzero, then the pattern is rotated counterclockwise by the specified 
- amount before testing. Seglen is the minimum length a mouse movement needs 
- to be in order to be considered significant. 
 - */ 
 
 - match_pattern()
- C++ Interface: match_pattern(const PointerEventList self, str pattern, double rot, double seglen) - /**
- This function is not implemented yet. It is a work in progress. The 
- intent is as follows: 
- Returns a nonzero value if the mouse movements match the specified pattern. 
- The higher the value, the better the match. The pattern is a sequence of 
- compass directions (ie, “E”, “NE”, etc) separated by spaces. If rot is 
- nonzero, then the pattern is rotated counterclockwise by the specified 
- amount before testing. Seglen is the minimum length a mouse movement needs 
- to be in order to be considered significant. 
 - */ 
 
 - popFront()
- C++ Interface: pop_front(const PointerEventList self) - /**
- Discards the first event on the list. 
 - */ 
 
 - pop_front()
- C++ Interface: pop_front(const PointerEventList self) - /**
- Discards the first event on the list. 
 - */ 
 
 - totalTurns()
- C++ Interface: total_turns(PointerEventList self, double sec) - /**
- returns the total angular deviation that the trail has made in the 
- specified time period. A small number means that the trail is moving in a 
- relatively straight line, a large number means that the trail is zig- 
- zagging or spinning. The result is in degrees. 
 - */ 
 
 - total_turns()
- C++ Interface: total_turns(PointerEventList self, double sec) - /**
- returns the total angular deviation that the trail has made in the 
- specified time period. A small number means that the trail is moving in a 
- relatively straight line, a large number means that the trail is zig- 
- zagging or spinning. The result is in degrees. 
 - */ 
 
 
