set_source

This commit is contained in:
David Rose 2003-01-10 21:06:09 +00:00
parent 78a3290325
commit b66c44c4e4
2 changed files with 15 additions and 2 deletions

View File

@ -45,6 +45,19 @@ MouseAndKeyboard(GraphicsWindow *window, int device, const string &name) :
_button_events = new ButtonEventList;
}
////////////////////////////////////////////////////////////////////
// Function: MouseAndKeyboard::set_source
// Access: Public
// Description: Redirects the class to get the data from the mouse
// and keyboard associated with a different window
// and/or device number.
////////////////////////////////////////////////////////////////////
void MouseAndKeyboard::
set_source(GraphicsWindow *window, int device) {
_window = window;
_device = device;
}
////////////////////////////////////////////////////////////////////
// Function: MouseAndKeyboard::do_transmit_data
// Access: Protected, Virtual

View File

@ -49,8 +49,8 @@
////////////////////////////////////////////////////////////////////
class EXPCL_PANDA MouseAndKeyboard : public DataNode {
PUBLISHED:
MouseAndKeyboard(GraphicsWindow *window, int device,
const string &name);
MouseAndKeyboard(GraphicsWindow *window, int device, const string &name);
void set_source(GraphicsWindow *window, int device);
protected:
// Inherited from DataNode