man SoXtKeyboard () - translates and reports events for the keyboard

NAME

SoXtKeyboard - translates and reports events for the keyboard

INHERITS FROM

SoXtDevice > SoXtKeyboard

SYNOPSIS

#include <Inventor/Xt/devices/SoXtKeyboard.h> #define SO_XT_ALL_KEYBOARD_EVENTS (KeyPressMask | KeyReleaseMask) Methods from class SoXtKeyboard: c } c } SoXtKeyboard(EventMask mask = SO_XT_ALL_KEYBOARD_EVENTS)

c } c } ~SoXtKeyboard() Methods from class SoXtDevice: c } c } enable(Widget w, XtEventHandler f, XtPointer data, Window win = NULL)

c } c } disable(Widget w, XtEventHandler f, XtPointer data)

c } c } translateEvent(XAnyEvent *xevent)

c } c } setWindowSize(const SbVec2s &size)

c } c } getWindowSize() const

DESCRIPTION

This class manages events generated by the keyboard, including key press and release events (SoKeyboardEvent).

METHODS

c } c } SoXtKeyboard(EventMask mask = SO_XT_ALL_KEYBOARD_EVENTS)

c } c } ~SoXtKeyboard()

Constructor and destructor. To the constructor, pass which keyboard events you are interested in as a bitwise OR of the following values: KeyPressMask - Key press events KeyReleaseMask - Key release events Or simply pass the defined value SO_XT_ALL_KEYBOARD_EVENTS for all keyboard events. The device will only report events of this type for the widget it is enabled on.

SEE ALSO

SoXtDevice, SoKeyboardEvent