Panda3D
pointerEvent.cxx
1 // Filename: pointerEvent.cxx
2 // Created by: drose (01Mar00)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #include "pointerEvent.h"
16 #include "datagram.h"
17 #include "datagramIterator.h"
18 
19 ////////////////////////////////////////////////////////////////////
20 // Function: PointerEvent::output
21 // Access: Public
22 // Description:
23 ////////////////////////////////////////////////////////////////////
24 void PointerEvent::
25 output(ostream &out) const {
26  out << (_in_window ? "In@" : "Out@")
27  << _xpos << "," << _ypos << " ";
28 }
29 
30 ////////////////////////////////////////////////////////////////////
31 // Function: PointerEvent::write_datagram
32 // Access: Public
33 // Description: Writes the event into a datagram.
34 ////////////////////////////////////////////////////////////////////
35 void PointerEvent::
37  nassertv(false && "This function not implemented yet.");
38 }
39 
40 ////////////////////////////////////////////////////////////////////
41 // Function: PointerEvent::read_datagram
42 // Access: Public
43 // Description: Restores the event from the datagram.
44 ////////////////////////////////////////////////////////////////////
45 void PointerEvent::
47  nassertv(false && "This function not implemented yet.");
48 }
void write_datagram(Datagram &dg) const
Writes the event into a datagram.
void read_datagram(DatagramIterator &scan)
Restores the event from the datagram.
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 ...
Definition: datagram.h:43