14#ifndef MOUSEANDKEYBOARD_H
15#define MOUSEANDKEYBOARD_H
41class EXPCL_PANDA_DISPLAY MouseAndKeyboard :
public DataNode {
43 explicit MouseAndKeyboard(
GraphicsWindow *window,
int device,
const std::string &name);
55 int _pixel_size_output;
57 int _button_events_output;
58 int _pointer_events_output;
60 PT(EventStoreVec2) _pixel_xy;
61 PT(EventStoreVec2) _pixel_size;
62 PT(EventStoreVec2) _xy;
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();}
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.
A window, fullscreen or on a desktop, into which a graphics device sends its output for interactive d...
void set_source(GraphicsWindow *window, int device)
Redirects the class to get the data from the mouse and keyboard associated with a different window an...
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.
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(),...