56#ifndef _SO_XT_SPACEBALL_
57#define _SO_XT_SPACEBALL_
60#include <X11/extensions/XInput.h>
195 void constructorCommon(Display *d, SoGuiSpaceball::Mask mask);
Base class for all events.
Abstract base class for input devices.
Translates and reports events for a SpaceBall or SpaceMouse (Magellan) device.
static SbBool exists(Display *d)
Returns whether or not the spaceball device exists for use.
float getRotationScaleFactor() const
Returns the rotation scale factor.
~SoXtSpaceball()
Destructor.
SoXtSpaceball(Display *d, SoGuiSpaceball::Mask mask=SoGuiSpaceball::ALL)
Constructor.
virtual const SoEvent * translateEvent(XAnyEvent *xevent)
This converts a system event into an SoEvent, returning NULL if the event is not from this device.
void setTranslationScaleFactor(float f)
The spaceball reports rotations and translations as integers.
SbBool isFocusToWindow() const
Gets the input focus method.
SoXtSpaceball(SoGuiSpaceball::Mask mask=SoGuiSpaceball::ALL)
Constructor.
virtual void enable(SoWidget w, XtEventHandler f, XtPointer data, Window win=0)
Enables this device for the passed widget.
virtual void disable(SoWidget w, XtEventHandler f, XtPointer data)
Disables this device for the passed widget.
static SbBool exists()
Returns whether or not the spaceball device exists for use.
void setFocusToWindow(SbBool flag)
Sets the input focus method used to get events from the space ball.
float getTranslationScaleFactor() const
Returns the translation scale factor.
void setRotationScaleFactor(float f)
The spaceball reports rotations and translations as integers.