Panda3D
clientAnalogDevice.cxx
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file clientAnalogDevice.cxx
10  * @author drose
11  * @date 2001-01-26
12  */
13 
14 #include "clientAnalogDevice.h"
15 
16 #include "indent.h"
17 
18 TypeHandle ClientAnalogDevice::_type_handle;
19 
20 /**
21  *
22  */
23 void ClientAnalogDevice::
24 write(std::ostream &out, int indent_level) const {
25  indent(out, indent_level) << get_type() << " " << get_name() << ":\n";
26  write_axes(out, indent_level + 2);
27 }
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void write_axes(std::ostream &out, int indent_level) const
Writes a multi-line description of the current analog axis states.
get_name
Returns a human-readable name for the device.
Definition: inputDevice.h:222
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
Definition: indent.cxx:20
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:81
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.