14 #ifndef VIRTUALMOUSE_H 15 #define VIRTUALMOUSE_H 36 void set_mouse_pos(
int x,
int y);
37 void set_window_size(
int width,
int height);
38 void set_mouse_on(
bool flag);
44 int _mouse_x, _mouse_y;
45 int _win_width, _win_height;
57 int _pixel_size_output;
59 int _button_events_output;
71 static void init_type() {
72 DataNode::init_type();
74 DataNode::get_class_type());
77 return get_class_type();
79 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
The fundamental type of node for the data graph.
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(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A handy class object for storing simple values (like integers or strings) passed along with an Event ...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Poses as a MouseAndKeyboard object in the datagraph, but accepts input from user calls,...
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Encapsulates the data generated from (or sent into) any particular DataNode.
This object supervises the traversal of the data graph and the moving of data from one DataNode to it...