Panda3D
osxGraphicsWindow.I
1 // Filename: osxGraphicsWindow.I
2 // Created by: drose (13Feb09)
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: osxGraphicsWindow::send_key_event
18 // Access: Private
19 // Description:
20 ////////////////////////////////////////////////////////////////////
21 inline void osxGraphicsWindow::
22 send_key_event(ButtonHandle key, bool down) {
23  if (down) {
24  _input_devices[0].button_down(key);
25  } else {
26  _input_devices[0].button_up(key);
27  }
28 }
A ButtonHandle represents a single button from any device, including keyboard buttons and mouse butto...
Definition: buttonHandle.h:28