OpenCOVER
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
VRVruiButtons.h
Go to the documentation of this file.
1 /* This file is part of COVISE.
2 
3  You can use it under the terms of the GNU Lesser General Public License
4  version 2.1 or later, see lgpl-2.1.txt.
5 
6  * License: LGPL 2+ */
7 
8 #ifndef VR_VRUI_BUTTONS_H
9 #define VR_VRUI_BUTTONS_H
10 
24 #include <stdlib.h>
26 namespace opencover
27 {
28 class coPointerButton;
29 
30 class COVEREXPORT VRVruiButtons : public vrui::vruiButtons
31 {
32 public:
34  {
38  };
39 
40  VRVruiButtons(ButtonsType type=Pointer);
41  virtual ~VRVruiButtons();
42 
43  virtual unsigned int wasPressed(unsigned int buttons) const;
44  virtual unsigned int wasReleased(unsigned int buttons) const;
45 
46  virtual unsigned int getStatus() const;
47  virtual unsigned int getOldStatus() const;
48 
49  virtual int getWheelCount(size_t idx=0) const;
50 
51 private:
52  ButtonsType m_type = Pointer;
53  coPointerButton *button() const;
54 };
55 }
56 #endif
ButtonsType
Definition: VRVruiButtons.h:33
Definition: vruiButtons.h:17
Definition: VRVruiButtons.h:35
Definition: coVRPluginSupport.h:150
Definition: VRVruiButtons.h:36
Definition: VRVruiButtons.h:30
Definition: VRVruiButtons.h:37