15 #ifndef VIRTUALMOUSE_H 16 #define VIRTUALMOUSE_H 18 #include "pandabase.h" 20 #include "buttonHandle.h" 21 #include "buttonEvent.h" 22 #include "pointerTo.h" 24 #include "linmath_events.h" 25 #include "buttonEventList.h" 40 void set_mouse_pos(
int x,
int y);
41 void set_window_size(
int width,
int height);
42 void set_mouse_on(
bool flag);
48 int _mouse_x, _mouse_y;
49 int _win_width, _win_height;
61 int _pixel_size_output;
63 int _button_events_output;
75 static void init_type() {
76 DataNode::init_type();
77 register_type(_type_handle,
"VirtualMouse",
78 DataNode::get_class_type());
81 return get_class_type();
83 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
The fundamental type of node for the data graph.
A handy class object for storing simple values (like integers or strings) passed along with an Event ...
Poses as a MouseAndKeyboard object in the datagraph, but accepts input from user calls, rather than reading the actual mouse and keyboard from an input device.
TypeHandle is the identifier used to differentiate C++ class types.
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...