SOSPACEBALLBUTTONEVENT(3iv)
π SoSpaceballButtonEvent(3IV) π
okay bestie, listen up β this is the manual page for SoSpaceballButtonEvent, from section 3IV of the Inventor docs. Spaceball buttons?? pressing and releasing?? yes babe, we're covering all of it. no skips, no crumbs. π¦
β¨ NAME β¨
SoSpaceballButtonEvent β spaceball button press and release events π
πΈ INHERITS FROM πΈ
SoEvent > SoButtonEvent > SoSpaceballButtonEvent
it's giving deep family tree. three whole layers of ancestry, iconic. π
β SYNOPSIS β
#include <Inventor/events/SoSpaceballButtonEvent.h>
#define SO_SPACEBALL_PRESS_EVENT(EVENT,BUTTON)
(SoSpaceballButtonEvent::isButtonPressEvent(EVENT,
SoSpaceballButtonEvent::BUTTON))
#define SO_SPACEBALL_RELEASE_EVENT(EVENT,BUTTON)
(SoSpaceballButtonEvent::isButtonReleaseEvent(EVENT,
SoSpaceballButtonEvent::BUTTON))
π the Button enum (aka the menu of buttons) π
SoSpaceballButtonEvent::ANYβ literally any spaceball button, we're not picky πSoSpaceballButtonEvent::BUTTON1β spaceball button 1SoSpaceballButtonEvent::BUTTON2β spaceball button 2SoSpaceballButtonEvent::BUTTON3β spaceball button 3SoSpaceballButtonEvent::BUTTON4β spaceball button 4SoSpaceballButtonEvent::BUTTON5β spaceball button 5SoSpaceballButtonEvent::BUTTON6β spaceball button 6SoSpaceballButtonEvent::BUTTON7β spaceball button 7SoSpaceballButtonEvent::BUTTON8β spaceball button 8SoSpaceballButtonEvent::PICKβ the spaceball pick button β¨
π§ methods from the class SoSpaceballButtonEvent π§
SoSpaceballButtonEvent()
static SoType getClassTypeId()
void setButton(SoSpaceballButtonEvent::Button b)
SoSpaceballButtonEvent::Button
getButton() const
static SbBool isButtonPressEvent(const SoEvent *e,
SoSpaceballButtonEvent::Button whichButton)
static SbBool isButtonReleaseEvent(const SoEvent *e,
SoSpaceballButtonEvent::Button whichButton)
π methods it inherited from SoButtonEvent π
void setState(SoButtonEvent::State s)
SoButtonEvent::State getState() const
π methods it inherited from SoEvent π
virtual SoType getTypeId() const
SbBool isOfType(SoType type) const
void setTime(SbTime t)
SbTime getTime() const
void setPosition(const SbVec2s &p)
const SbVec2s & getPosition() const
const SbVec2s & getPosition(const SbViewportRegion &vpRgn) const
const SbVec2f & getNormalizedPosition(const SbViewportRegion &vpRgn)
const
void setShiftDown(SbBool isDown)
void setCtrlDown(SbBool isDown)
void setAltDown(SbBool isDown)
SbBool wasShiftDown() const
SbBool wasCtrlDown() const
SbBool wasAltDown() const
π DESCRIPTION π
SoSpaceballButtonEvent represents spaceball button press and release events in the Inventor event model. that's the whole vibe. a button goes down, a button comes up, and this class is the one holding the receipts. π
π METHODS π
SoSpaceballButtonEvent()β the constructor. it's born. welcome to the world, little event. πΌβ¨static SoType getClassTypeId()β hands you the type id for theSoSpaceballButtonEventclass. your little name tag, bestie. π·οΈvoid setButton(SoSpaceballButtonEvent::Button b)andSoSpaceballButtonEvent::Button getButton() constβ set and get which spaceball button generated the event. so like, which one of the buttons did this. π―static SbBool isButtonPressEvent(const SoEvent *e, SoSpaceballButtonEvent::Button whichButton)andstatic SbBool isButtonReleaseEvent(const SoEvent *e, SoSpaceballButtonEvent::Button whichButton)β returns whether the event you passed in is a spaceball button press or release event of the button you passed in. and ooooh the tea: when you passSoSpaceballButtonEvent::ANY, it returnsTRUEif the event represents a button press or release of any spaceball button. periodt. π₯
ngl, those two macros up in the synopsis are just cute little wrappers around exactly these two static methods. iykyk. π«Ά
π¦ SEE ALSO π¦
SoEvent, SoButtonEvent, SoKeyboardEvent, SoLocation2Event, SoMotion3Event, SoMouseButtonEvent, SoHandleEventAction, SoEventCallback, SoSelection, SoInteraction, SoXtDevice
and that's the whole page, bestie!! this was SoSpaceballButtonEvent(3IV), from the 3IV manual set, footer and all β mwah, go forth and handle those spaceball events. πβ¨ππ π«Ά
π¦ 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