Panda3D
Loading...
Searching...
No Matches
osxGraphicsWindow.I
Go to the documentation of this file.
1/**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file osxGraphicsWindow.I
10 * @author drose
11 * @date 2009-02-13
12 */
13
14/**
15 *
16 */
17inline void osxGraphicsWindow::
18send_key_event(ButtonHandle key, bool down) {
19 if (down) {
20 _input_devices[0].button_down(key);
21 } else {
22 _input_devices[0].button_up(key);
23 }
24}
A ButtonHandle represents a single button from any device, including keyboard buttons and mouse butto...