Panda3D
 All Classes Functions Variables Enumerations
tinyOsxGraphicsWindow.I
1 // Filename: tinyOsxGraphicsWindow.I
2 // Created by: drose (12May08)
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 inline void TinyOsxGraphicsWindow::SendKeyEvent( ButtonHandle key, bool down)
18 {
19  if(down)
20  _input_devices[0].button_down(key);
21  else
22  _input_devices[0].button_up(key);
23 }
A ButtonHandle represents a single button from any device, including keyboard buttons and mouse butto...
Definition: buttonHandle.h:28