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 }
InputDevice::get_name
get_name
Returns a human-readable name for the device.
Definition: inputDevice.h:228
InputDevice::write_axes
void write_axes(std::ostream &out, int indent_level) const
Writes a multi-line description of the current analog axis states.
Definition: inputDevice.cxx:504
TypeHandle
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:81
clientAnalogDevice.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
indent
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
Definition: indent.cxx:20
indent.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.