00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef MOUSEBUTTON_H
00016 #define MOUSEBUTTON_H
00017
00018 #include "pandabase.h"
00019
00020 #include "buttonHandle.h"
00021
00022
00023
00024
00025
00026
00027
00028 class EXPCL_PANDA_PUTIL MouseButton {
00029 PUBLISHED:
00030 static ButtonHandle button(int button_number);
00031 static ButtonHandle one();
00032 static ButtonHandle two();
00033 static ButtonHandle three();
00034 static ButtonHandle four();
00035 static ButtonHandle five();
00036 static ButtonHandle wheel_up();
00037 static ButtonHandle wheel_down();
00038 static ButtonHandle wheel_left();
00039 static ButtonHandle wheel_right();
00040
00041 static bool is_mouse_button(ButtonHandle button);
00042
00043 public:
00044 static void init_mouse_buttons();
00045
00046 enum { num_mouse_buttons = 5 };
00047 static ButtonHandle _buttons[num_mouse_buttons];
00048 static ButtonHandle _wheel_up;
00049 static ButtonHandle _wheel_down;
00050 static ButtonHandle _wheel_left;
00051 static ButtonHandle _wheel_right;
00052 };
00053
00054 #endif