Panda3D
 All Classes Functions Variables Enumerations
eventHandler.I
1 // Filename: eventHandler.I
2 // Created by: skyler (27Jan04)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 
16 ////////////////////////////////////////////////////////////////////
17 // Function: EventQueue::get_global_event_handler
18 // Access: Public
19 // Description: Returns a pointer to the one global EventHandler
20 // object. If the global object has not yet been
21 // created, this will create it.
22 ////////////////////////////////////////////////////////////////////
25  // The event queue parameter is present for now, for backward
26  // compatibility, but it is ignored.
27  if (_global_event_handler == 0) {
28  make_global_event_handler();
29  }
30  return _global_event_handler;
31 }
A class to monitor events from the C++ side of things.
Definition: eventHandler.h:41
A queue of pending events.
Definition: eventQueue.h:32
static EventHandler * get_global_event_handler(EventQueue *queue=NULL)
Returns a pointer to the one global EventHandler object.
Definition: eventHandler.I:24