14 #ifndef CLIENTDEVICE_H 15 #define CLIENTDEVICE_H 30 const std::string &device_name);
40 virtual void do_poll()
final;
42 virtual void output(std::ostream &out)
const;
43 virtual void write(std::ostream &out,
int indent_level = 0)
const;
53 static void init_type() {
54 InputDevice::init_type();
56 InputDevice::get_class_type());
59 return get_class_type();
61 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
69 INLINE std::ostream &operator <<(std::ostream &out,
const ClientDevice &device) {
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual void output(std::ostream &out) const
Writes a one-line string describing the device.
An abstract base class for a family of client device interfaces–including trackers,...
TypeHandle is the identifier used to differentiate C++ class types.
Any of a number of different devices that might be attached to a ClientBase, including trackers,...