OpenCOVER
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>
26namespace opencover
27{
28class coPointerButton;
29
30class COVEREXPORT VRVruiButtons : public vrui::vruiButtons
31{
32public:
34 {
38 };
39
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
51private:
52 ButtonsType m_type = Pointer;
53 coPointerButton *button() const;
54};
55}
56#endif
Definition: ARToolKit.h:33
Definition: coVRPluginSupport.h:151
Definition: VRVruiButtons.h:31
virtual unsigned int wasPressed(unsigned int buttons) const
ButtonsType
Definition: VRVruiButtons.h:34
@ Mouse
Definition: VRVruiButtons.h:36
@ Relative
Definition: VRVruiButtons.h:37
@ Pointer
Definition: VRVruiButtons.h:35
VRVruiButtons(ButtonsType type=Pointer)
virtual unsigned int wasReleased(unsigned int buttons) const
virtual unsigned int getStatus() const
virtual int getWheelCount(size_t idx=0) const
virtual unsigned int getOldStatus() const
Definition: vruiButtons.h:18