14#ifndef INPUTDEVICENODE_H
15#define INPUTDEVICENODE_H
29class EXPCL_PANDA_DEVICE InputDeviceNode :
public DataNode {
31 InputDeviceNode(
InputDevice *device,
const std::string &name);
47 pmap<ButtonHandle, bool> _button_states;
48 pmap<InputDevice::Axis, double> _control_states;
51 int _button_events_output;
59 static void init_type() {
60 DataNode::init_type();
62 DataNode::get_class_type());
64 virtual TypeHandle get_type()
const {
65 return get_class_type();
67 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
70 static TypeHandle _type_handle;
This object supervises the traversal of the data graph and the moving of data from one DataNode to it...
Encapsulates the data generated from (or sent into) any particular DataNode.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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(),...