Panda3D

pointerEvent.cxx

00001 // Filename: pointerEvent.cxx
00002 // Created by:  drose (01Mar00)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #include "pointerEvent.h"
00016 #include "datagram.h"
00017 #include "datagramIterator.h"
00018 
00019 ////////////////////////////////////////////////////////////////////
00020 //     Function: PointerEvent::output
00021 //       Access: Public
00022 //  Description:
00023 ////////////////////////////////////////////////////////////////////
00024 void PointerEvent::
00025 output(ostream &out) const {
00026   out << (_in_window ? "In@" : "Out@")
00027       << _xpos << "," << _ypos << " ";
00028 }
00029 
00030 ////////////////////////////////////////////////////////////////////
00031 //     Function: PointerEvent::write_datagram
00032 //       Access: Public
00033 //  Description: Writes the event into a datagram.
00034 ////////////////////////////////////////////////////////////////////
00035 void PointerEvent::
00036 write_datagram(Datagram &dg) const {
00037   nassertv(false && "This function not implemented yet.");
00038 }
00039 
00040 ////////////////////////////////////////////////////////////////////
00041 //     Function: PointerEvent::read_datagram
00042 //       Access: Public
00043 //  Description: Restores the event from the datagram.
00044 ////////////////////////////////////////////////////////////////////
00045 void PointerEvent::
00046 read_datagram(DatagramIterator &scan) {
00047   nassertv(false && "This function not implemented yet.");
00048 }
 All Classes Functions Variables Enumerations