21 INLINE PointerEventList::
30 INLINE PointerEventList::
41 INLINE
void PointerEventList::
43 _events = copy._events;
53 return _events.size();
63 nassertr((evt >= 0) && (evt < (
int)_events.size()), 0);
64 return _events[evt]._in_window;
74 nassertr((evt >= 0) && (evt < (
int)_events.size()), 0);
75 return _events[evt]._xpos;
85 nassertr((evt >= 0) && (evt < (
int)_events.size()), 0);
86 return _events[evt]._ypos;
96 nassertr((evt >= 0) && (evt < (
int)_events.size()), 0);
97 return _events[evt]._dx;
107 nassertr((evt >= 0) && (evt < (
int)_events.size()), 0);
108 return _events[evt]._dy;
118 nassertr((evt >= 0) && (evt < (
int)_events.size()), 0);
119 return _events[evt]._length;
129 nassertr((evt >= 0) && (evt < (
int)_events.size()), 0);
130 return _events[evt]._direction;
140 nassertr((evt >= 0) && (evt < (
int)_events.size()), 0);
141 return _events[evt]._rotation;
151 nassertr((evt >= 0) && (evt < (
int)_events.size()), 0);
152 return _events[evt]._sequence;
162 nassertr((evt >= 0) && (evt < (
int)_events.size()), 0);
163 return _events[evt]._time;
bool get_in_window(int n) const
Get the in-window flag of the nth event.
int get_xpos(int n) const
Get the x-coordinate of the nth event.
int get_sequence(int n) const
Get the sequence number of the nth event.
void clear()
Empties all the events from the list.
Records a set of pointer events that happened recently.
int get_dy(int n) const
Get the y-coordinate of the nth event.
double get_length(int n) const
Get the length of the nth event.
int get_num_events() const
Returns the number of events in the list.
double get_direction(int n) const
Get the direction of the nth event.
int get_ypos(int n) const
Get the y-coordinate of the nth event.
int get_dx(int n) const
Get the x-coordinate of the nth event.
void pop_front()
Discards the first event on the list.
double get_rotation(int n) const
Get the rotation of the nth event.
double get_time(int n) const
Get the timestamp of the nth event.