17 INLINE PointerEventList::
24 INLINE PointerEventList::
33 INLINE
void PointerEventList::
35 _events = copy._events;
43 return _events.size();
51 return _events.empty();
67 nassertr(n < _events.size(), 0);
68 return _events[n]._in_window;
76 nassertr(n < _events.size(), 0);
77 return _events[n]._xpos;
85 nassertr(n < _events.size(), 0);
86 return _events[n]._ypos;
94 nassertr(n < _events.size(), 0);
95 return _events[n]._dx;
103 nassertr(n < _events.size(), 0);
104 return _events[n]._dy;
112 nassertr(n < _events.size(), 0);
113 return _events[n]._length;
121 nassertr(n < _events.size(), 0);
122 return _events[n]._direction;
130 nassertr(n < _events.size(), 0);
131 return _events[n]._rotation;
139 nassertr(n < _events.size(), 0);
140 return _events[n]._sequence;
148 nassertr(n < _events.size(), 0);
149 return _events[n]._time;
size_t get_num_events() const
Returns the number of events in the list.
double get_dy(size_t n) const
Get the y-delta of the nth event.
double get_direction(size_t n) const
Get the direction of the nth event.
int get_ypos(size_t n) const
Get the y-coordinate of the nth event.
const PointerEvent & get_event(size_t n) const
Returns the nth event in the list.
int get_xpos(size_t n) const
Get the x-coordinate of the nth event.
void clear()
Empties all the events from the list.
Records a set of pointer events that happened recently.
int get_sequence(size_t n) const
Get the sequence number of the nth event.
double get_time(size_t n) const
Get the timestamp of the nth event.
double get_dx(size_t n) const
Get the x-delta of the nth event.
bool empty() const
Returns true if the list is empty.
double get_rotation(size_t n) const
Get the rotation of the nth event.
double get_length(size_t n) const
Get the length of the nth event.
void pop_front()
Discards the first event on the list.
Records a pointer movement event.
bool get_in_window(size_t n) const
Get the in-window flag of the nth event.