Panda3D
mouseData.cxx
1 // Filename: mouseData.cxx
2 // Created by: drose (08Feb99)
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 "mouseData.h"
16 
17 ////////////////////////////////////////////////////////////////////
18 // Function: MouseData::output
19 // Access: Published
20 // Description:
21 ////////////////////////////////////////////////////////////////////
22 void MouseData::
23 output(ostream &out) const {
24  if (!_in_window) {
25  out << "MouseData: Not in window";
26  } else {
27  out << "MouseData: (" << _xpos << ", " << _ypos << ")";
28  }
29 }