Panda3D
Loading...
Searching...
No Matches
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
18TypeHandle ClientAnalogDevice::_type_handle;
19
20/**
21 *
22 */
23void ClientAnalogDevice::
24write(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}
get_name
Returns a human-readable name for the device.
void write_axes(std::ostream &out, int indent_level) const
Writes a multi-line description of the current analog axis states.
TypeHandle is the identifier used to differentiate C++ class types.
Definition typeHandle.h:81
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
Definition indent.cxx:20
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.