mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
set_source
This commit is contained in:
parent
78a3290325
commit
b66c44c4e4
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user