26class EXPCL_PANDA_EVENT PointerEvent {
28 PointerEvent() =
default;
30 INLINE
bool operator == (
const PointerEvent &other)
const;
31 INLINE
bool operator != (
const PointerEvent &other)
const;
32 INLINE
bool operator < (
const PointerEvent &other)
const;
34 void output(std::ostream &out)
const;
40 bool _in_window =
false;
48 double _direction = 0.0;
49 double _pressure = 0.0;
50 double _rotation = 0.0;
55INLINE std::ostream &operator << (std::ostream &out,
const PointerEvent &pe) {
A class to retrieve the individual data elements previously stored in a Datagram.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
Records a pointer movement event.
void write_datagram(Datagram &dg) const
Writes the event into a datagram.
void read_datagram(DatagramIterator &scan)
Restores the event from the datagram.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PointerType
Contains the types of pointer device.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.