00001 // Filename: mouseButton.h 00002 // Created by: drose (01Mar00) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved 00008 // 00009 // All use of this software is subject to the terms of the Panda 3d 00010 // Software license. You should have received a copy of this license 00011 // along with this source code; you will also find a current copy of 00012 // the license at http://www.panda3d.org/license.txt . 00013 // 00014 // To contact the maintainers of this program write to 00015 // panda3d@yahoogroups.com . 00016 // 00017 //////////////////////////////////////////////////////////////////// 00018 00019 #ifndef MOUSEBUTTON_H 00020 #define MOUSEBUTTON_H 00021 00022 #include <pandabase.h> 00023 00024 #include "buttonHandle.h" 00025 00026 //////////////////////////////////////////////////////////////////// 00027 // Class : MouseButton 00028 // Description : This class is just used as a convenient namespace for 00029 // grouping all of these handy functions that return 00030 // buttons which map to standard mouse buttons. 00031 //////////////////////////////////////////////////////////////////// 00032 class EXPCL_PANDA MouseButton { 00033 PUBLISHED: 00034 static ButtonHandle button(int button_number); 00035 static ButtonHandle one(); 00036 static ButtonHandle two(); 00037 static ButtonHandle three(); 00038 00039 static bool is_mouse_button(ButtonHandle button); 00040 00041 public: 00042 static void init_mouse_buttons(); 00043 }; 00044 00045 #endif