forked from panda3d/panda3d
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheventHandler.I
More file actions
26 lines (25 loc) · 787 Bytes
/
eventHandler.I
File metadata and controls
26 lines (25 loc) · 787 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file eventHandler.I
* @author skyler
* @date 2004-01-27
*/
/**
* Returns a pointer to the one global EventHandler object. If the global
* object has not yet been created, this will create it.
*/
INLINE EventHandler *EventHandler::
get_global_event_handler(EventQueue *queue) {
// The event queue parameter is present for now, for backward compatibility,
// but it is ignored.
if (_global_event_handler == 0) {
make_global_event_handler();
}
return _global_event_handler;
}