SOXTKEYBOARD(3iv)
π SoXtKeyboard(3IV) β the keyboard girlie of the Inventor Xt world
okay bestie, welcome to SoXtKeyboard(3IV). That's the page name plus the manual section, and yes we're doing this together, no cap. Grab a snack, we're reading a manpage π
πΈ NAME
SoXtKeyboard β translates and reports events for the keyboard. That's the whole job description. She listens to keys, she tells you what happened. Iconic behavior, honestly π
π¦ INHERITS FROM
SoXtDevice > SoXtKeyboard
So she's a SoXtDevice, but specifically the keyboard one. Inheritance chain ate, as always β¨
β¨ SYNOPSIS
#include <Inventor/Xt/devices/SoXtKeyboard.h>
#define SO_XT_ALL_KEYBOARD_EVENTS (KeyPressMask | KeyReleaseMask)
Methods from class SoXtKeyboard:
SoXtKeyboard(EventMask mask =
SO_XT_ALL_KEYBOARD_EVENTS)
~SoXtKeyboard()
Methods from class SoXtDevice:
virtual void enable(Widget w, XtEventHandler f, XtPointer
data, Window win = NULL)
virtual void disable(Widget w, XtEventHandler f, XtPointer
data)
virtual const SoEvent * translateEvent(XAnyEvent *xevent)
void setWindowSize(const SbVec2s &size)
const SbVec2s & getWindowSize() const
π DESCRIPTION
okay so this class manages events generated by the keyboard, and that includes key press and release events β aka SoKeyboardEvent. That's the whole thing. She catches the keys, she reports the keys. main character energy fr fr π
π§ METHODS
SoXtKeyboard(EventMask mask =
SO_XT_ALL_KEYBOARD_EVENTS)
~SoXtKeyboard()
Constructor and destructor, the classic duo π«Ά
To the constructor you pass which keyboard events you are interested in, as a bitwise OR of these values:
KeyPressMaskβ Key press eventsKeyReleaseMaskβ Key release events
Or you can just pass the defined value SO_XT_ALL_KEYBOARD_EVENTS if you want all keyboard events, because why choose πββοΈ
heads up bestie: the device will only report events of this type for the widget it is enabled on. So whatever mask you hand over is the vibe check she's running, periodt.
π SEE ALSO
SoXtDevice, SoKeyboardEvent β go read those too, they're the extended universe, iykyk πβ¨
and that's the page! this one signs off as SoXtKeyboard(3IV)() β the same title stamped at the bottom, with the source/version and date slots sitting there empty, like a girl who left the party without saying bye ππ go forth and handle your key events, bestie, you're gonna slay π₯π
π¦ where this page comes from
- debian bookworm: inventor-doc 2.1.5-10+dfsg-2 Β· LGPL-2.0-or-later
- debian trixie: inventor-doc 2.1.6+ds-2 Β· LGPL-2.0-or-later
- ubuntu jammy: inventor-doc 2.1.5-10-24
- ubuntu noble: inventor-doc 2.1.5-10+dfsg-2.1build2 Β· LGPL-2.0-or-later
- ubuntu questing: inventor-doc 2.1.6+ds-2
- ubuntu resolute: inventor-doc 2.1.6.1+ds-1 Β· LGPL-2.0-or-later
- ubuntu stonking: inventor-doc 2.1.6.1+ds-1 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms