52# include <Inventor/Qt/devices/SoQtKeyboard.h>
54# include <Inventor/Win/devices/SoWinKeyboard.h>
57#ifndef _SO_XT_KEYBOARD_
58#define _SO_XT_KEYBOARD_
61#include <Inventor/Xt/devices/SoXtDevice.h>
62#include <Inventor/events/SoKeyboardEvent.h>
64#define SO_XT_ALL_KEYBOARD_EVENTS (KeyPressMask | KeyReleaseMask)
104 virtual void enable(SoWidget w, XtEventHandler f,
105 XtPointer data, Window win = (Window)NULL);
Base class for all events.
Keyboard key press and release events.
Abstract base class for input devices.
Translates and reports events for the keyboard device.
SoXtKeyboard(EventMask mask=SO_XT_ALL_KEYBOARD_EVENTS)
Constructor.
~SoXtKeyboard()
Destructor.
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.
virtual const SoEvent * translateEvent(XAnyEvent *xevent)
Attempts to convert the passed event into an SoEvent.