Panda3D
 All Classes Functions Variables Enumerations
mouseInterfaceNode.I
00001 // Filename: mouseInterfaceNode.I
00002 // Created by:  drose (11Jun04)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 
00016 ////////////////////////////////////////////////////////////////////
00017 //     Function: MouseInterfaceNode::is_down
00018 //       Access: Protected
00019 //  Description: Returns true if the indicated button (which must have
00020 //               been specified in a previous call to watch_button())
00021 //               is known to be held down, false otherwise.
00022 ////////////////////////////////////////////////////////////////////
00023 INLINE bool MouseInterfaceNode::
00024 is_down(ButtonHandle button) const {
00025   return _current_button_state.is_down(button);
00026 }
 All Classes Functions Variables Enumerations