SoXtKeyboard — translates and reports events for the keyboard
Contents
Description
This class manages events generated by the keyboard, including key press and release events
(SoKeyboardEvent).
Inherits From
SoXtDevice > SoXtKeyboard
Methods
SoXtKeyboard(EventMaskmask=SO_XT_ALL_KEYBOARD_EVENTS)~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.
Name
SoXtKeyboard — translates and reports events for the keyboard
See Also
SoXtDevice,SoKeyboardEventSoXtKeyboard(3IV)()
Synopsis
#include<Inventor/Xt/devices/SoXtKeyboard.h>#defineSO_XT_ALL_KEYBOARD_EVENTS(KeyPressMask|KeyReleaseMask)
Methods from class SoXtKeyboard:
SoXtKeyboard(EventMaskmask=SO_XT_ALL_KEYBOARD_EVENTS)~SoXtKeyboard()
Methods from class SoXtDevice:
virtualvoidenable(Widgetw,XtEventHandlerf,XtPointerdata,Windowwin=NULL)virtualvoiddisable(Widgetw,XtEventHandlerf,XtPointerdata)virtualconstSoEvent*translateEvent(XAnyEvent*xevent)voidsetWindowSize(constSbVec2s&size)constSbVec2s&getWindowSize()const