1SoXtKeyboard(3IV)() SoXtKeyboard(3IV)()
2
3
4
6 SoXtKeyboard — translates and reports events for the keyboard
7
9 SoXtDevice > SoXtKeyboard
10
12 #include <Inventor/Xt/devices/SoXtKeyboard.h>
13
14 #define SO_XT_ALL_KEYBOARD_EVENTS (KeyPressMask | KeyReleaseMask)
15
16 Methods from class SoXtKeyboard:
17
18 SoXtKeyboard(EventMask mask = SO_XT_ALL_KEY‐
19 BOARD_EVENTS)
20 ~SoXtKeyboard()
21
22 Methods from class SoXtDevice:
23
24 virtual void enable(Widget w, XtEventHandler f, XtPointer
25 data, Window win = NULL)
26 virtual void disable(Widget w, XtEventHandler f, XtPointer
27 data)
28 virtual const SoEvent * translateEvent(XAnyEvent *xevent)
29 void setWindowSize(const SbVec2s &size)
30 const SbVec2s & getWindowSize() const
31
32
34 This class manages events generated by the keyboard, including key
35 press and release events (SoKeyboardEvent).
36
38 SoXtKeyboard(EventMask mask = SO_XT_ALL_KEY‐
39 BOARD_EVENTS)
40 ~SoXtKeyboard()
41 Constructor and destructor. To the constructor, pass which keyboard
42 events you are interested in as a bitwise OR of the following val‐
43 ues:
44
45 KeyPressMask — Key press events
46
47 KeyReleaseMask — Key release events
48
49 Or simply pass the defined value SO_XT_ALL_KEYBOARD_EVENTS for all
50 keyboard events. The device will only report events of this type for
51 the widget it is enabled on.
52
53
55 SoXtDevice, SoKeyboardEvent
56
57
58
59
60 SoXtKeyboard(3IV)()