MeVisLab Toolbox Reference
XVMouseButtons.h
Go to the documentation of this file.
1 /*************************************************************************************
2 **
3 ** Copyright 2007, MeVis Medical Solutions AG
4 **
5 ** The user may use this file in accordance with the license agreement provided with
6 ** the Software or, alternatively, in accordance with the terms contained in a
7 ** written agreement between the user and MeVis Medical Solutions AG.
8 **
9 ** For further information use the contact form at https://www.mevislab.de/contact
10 **
11 **************************************************************************************/
12 
13 #ifndef XVMOUSE_BUTTONS_H
14 #define XVMOUSE_BUTTONS_H
15 
17 
22 #define XV_LEFT_MOUSEBUTTON 1
23 #define XV_MIDDLE_MOUSEBUTTON 2
24 #define XV_RIGHT_MOUSEBUTTON 3
25 
27 #define XV_MAP_BUTTON(a) (a)
28 
29 // Some replacements for the OpenInventorMacros defined in SoMouseButtonEvent.h.
30 #define XV_MOUSE_PRESS_EVENT(EVENT,BUTTON) \
31  (SoMouseButtonEvent::isButtonPressEvent(EVENT,XV_MAP_BUTTON(SoMouseButtonEvent::BUTTON)))
32 
33 #define XV_MOUSE_RELEASE_EVENT(EVENT,BUTTON) \
34  (SoMouseButtonEvent::isButtonReleaseEvent(EVENT,XV_MAP_BUTTON(SoMouseButtonEvent::BUTTON)))
35 
36 #endif
37