14#ifndef MOUSEINTERFACENODE_H
15#define MOUSEINTERFACENODE_H
31class EXPCL_PANDA_TFORM MouseInterfaceNode :
public DataNode {
33 explicit MouseInterfaceNode(
const std::string &name);
34 virtual ~MouseInterfaceNode();
44 bool &required_buttons_match);
55 int _button_events_input;
61 static void init_type() {
62 DataNode::init_type();
64 DataNode::get_class_type());
67 return get_class_type();
69 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
Encapsulates the data generated from (or sent into) any particular DataNode.
void clear_button(const ButtonHandle &button)
Removes any requirement on the indicated button set by an earlier call to require_button().
void clear_all_buttons()
Removes all requirements on buttons set by an earlier call to require_button().
void require_button(const ButtonHandle &button, bool is_down)
Indicates that the indicated button must be in the required state (either up or down) in order for th...
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(),...