Panda3D
Main Page
Classes
Files
File List
All
Classes
Functions
Variables
Enumerations
panda
src
tform
mouseInterfaceNode.I
1
// Filename: mouseInterfaceNode.I
2
// Created by: drose (11Jun04)
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: MouseInterfaceNode::is_down
18
// Access: Protected
19
// Description: Returns true if the indicated button (which must have
20
// been specified in a previous call to watch_button())
21
// is known to be held down, false otherwise.
22
////////////////////////////////////////////////////////////////////
23
INLINE
bool
MouseInterfaceNode::
24
is_down(
ButtonHandle
button)
const
{
25
return
_current_button_state.
is_down
(button);
26
}
ButtonHandle
A ButtonHandle represents a single button from any device, including keyboard buttons and mouse butto...
Definition:
buttonHandle.h:28
ModifierButtons::is_down
bool is_down(ButtonHandle button) const
Returns true if the indicated button is known to be down, or false if it is known to be up or if it i...
Definition:
modifierButtons.cxx:331
Generated on Mon Feb 1 2016 13:44:39 for Panda3D by
1.8.5