52# include <Inventor/Qt/devices/SoQtMouse.h>
54# include <Inventor/Win/devices/SoWinMouse.h>
60#include <Inventor/Xt/devices/SoXtDevice.h>
61#include <Inventor/events/SoLocation2Event.h>
62#include <Inventor/events/SoMouseButtonEvent.h>
63#include <Inventor/events/SoMouseWheelEvent.h>
66#define SO_XT_ALL_MOUSE_EVENTS \
67 (ButtonPressMask | ButtonReleaseMask | \
68 PointerMotionMask | ButtonMotionMask)
113 virtual void enable(SoWidget w, XtEventHandler f,
114 XtPointer data, Window win = (Window)NULL);
134 SbTime lastReleaseButtonEvent;
139 float doubleClickTiming;
Class for representation of a time.
Base class for all events.
Abstract base class for input devices.
Translates and reports events for the mouse device.
virtual const SoEvent * translateEvent(XAnyEvent *xevent)
Attempts to convert the passed event into an SoEvent.
SoXtMouse(EventMask mask=SO_XT_ALL_MOUSE_EVENTS)
Constructor.
virtual void enable(SoWidget w, XtEventHandler f, XtPointer data, Window win=(Window) NULL)
Enables the device for the passed widget.
virtual void disable(SoWidget w, XtEventHandler f, XtPointer data)
Disables the device for the passed widget.