SoSpaceballButtonEvent(3)
π SoSpaceballButtonEvent β a Coin manual page, bestie edition π
okay so this is SoSpaceballButtonEvent(3), a page from the Coin manual, and it's literally all about spaceball button interaction. yes, spaceball. the 3D mouse thing. it's giving retro-futuristic and we're obsessed. π¦
β¨ NAME β¨
SoSpaceballButtonEvent β the class that holds all the info about spaceball button interaction. that's it, that's the whole job. π
π SYNOPSIS π
#include <Inverter/events/SoSpaceballButtonEvent.h>
wait no π β it's:
#include <Inventor/events/SoSpaceballButtonEvent.h>
Inherits SoButtonEvent. family tree matters, okay?
πΈ Public Types πΈ
enum Button { ANY, BUTTON1, BUTTON2, BUTTON3, BUTTON4, BUTTON5, BUTTON6,
BUTTON7, BUTTON8, PICK }
π Public Types inherited from SoButtonEvent
enum State { UP, DOWN, UNKNOWN }
β Public Member Functions β
virtual SoType getTypeId (void) const
SoSpaceballButtonEvent (void)
virtual ~SoSpaceballButtonEvent ()
void setButton (Button button)
Button getButton (void) const
π«Ά Public Member Functions inherited from SoButtonEvent
SoButtonEvent (void)
virtual ~SoButtonEvent ()
void setState (State state)
State getState (void) const
π§ Public Member Functions inherited from SoEvent
SoEvent (void)
virtual ~SoEvent ()
SbBool isOfType (SoType type) const
void setTime (const SbTime t)
SbTime getTime (void) const
void setPosition (const SbVec2s &p)
const SbVec2s & getPosition (void) const
const SbVec2s & getPosition (const SbViewportRegion &vpRgn) const
const SbVec2f & getNormalizedPosition (const SbViewportRegion &vpRgn)
const
void setShiftDown (SbBool isDown)
SbBool wasShiftDown (void) const
void setCtrlDown (SbBool isDown)
SbBool wasCtrlDown (void) const
void setAltDown (SbBool isDown)
SbBool wasAltDown (void) const
π Static Public Member Functions π
static SoType getClassTypeId (void)
static void initClass (void)
static SbBool isButtonPressEvent (const SoEvent *e, Button whichButton)
static SbBool isButtonReleaseEvent (const SoEvent *e, Button
whichButton)
static SbBool enumToString (Button enumval, SbString &stringrep)
π Static Public Member Functions inherited from SoButtonEvent
static SoType getClassTypeId (void)
static void initClass (void)
static SbBool enumToString (State enumval, SbString &stringrep)
π Static Public Member Functions inherited from SoEvent
static SoType getClassTypeId (void)
static void initClass (void)
π Detailed Description π
SoSpaceballButtonEvent is the class that carries around all the info about spaceball button interaction. main character energy, honestly.
so like β when the user presses any buttons on a spaceball device, those get translated from a system specific event into a Coin event, and then they get sent to the scene graph using instances of this class. that's the whole pipeline. no cap. π₯
See also
SoEvent,SoButtonEvent,SoMouseButtonEvent,SoKeyboardEventSoEventCallback,SoHandleEventAction
π Member Enumeration Documentation π
enum SoSpaceballButtonEvent::Button
this enum contains all spaceball buttons detected by Coin. every single one. π
Enumerator
ANYβ any of the buttons. yes, all of them. chaotic but valid.BUTTON1β spaceball button 1.BUTTON2β spaceball button 2.BUTTON3β spaceball button 3.BUTTON4β spaceball button 4.BUTTON5β spaceball button 5.BUTTON6β spaceball button 6.BUTTON7β spaceball button 7.BUTTON8β spaceball button 8.PICKβ spaceball pick button. the pick one. iconic.
π¦ Constructor & Destructor Documentation π¦
SoSpaceballButtonEvent::SoSpaceballButtonEvent (void )
Constructor. it makes one. slay. β¨
SoSpaceballButtonEvent::~SoSpaceballButtonEvent () [virtual]
Destructor. it unmakes one. π
π Member Function Documentation π
SoType SoSpaceballButtonEvent::getClassTypeId (void ) [static]
this static method returns the SoType object associated with objects of this class. static bestie behavior.
SoType SoSpaceballButtonEvent::getTypeId (void ) const [virtual]
returns the type identification of an object derived from a class inheriting SoEvent. this is used for runtime type checking and "downward" casting. very detective of it. π
Reimplemented from SoButtonEvent.
void SoSpaceballButtonEvent::initClass (void ) [static]
initialize the type information data. set it up, queen. π
void SoSpaceballButtonEvent::setButton (SoSpaceballButtonEvent::Button buttonarg)
sets the value of the button which the user interacted with.
this method is used from the window specific device classes when translating events to the generic Coin library. iykyk.
See also
getButton()
SoSpaceballButtonEvent::Button SoSpaceballButtonEvent::getButton (void ) const
returns the value of the button which was pressed or released.
See also
getState()wasShiftDown(),wasCtrlDown(),wasAltDown(),getPosition(),getTime()
SbBool SoSpaceballButtonEvent::isButtonPressEvent (const SoEvent * e, SoSpaceballButtonEvent::Button whichButton) [static]
convenience method for quickly checking if the given event is a press on the given button, whichButton. quick lil vibe check on your event. β
See also
isButtonReleaseEvent(),isOfType(),getButton(),getState()
SbBool SoSpaceballButtonEvent::isButtonReleaseEvent (const SoEvent * e, SoSpaceballButtonEvent::Button whichButton) [static]
convenience method for quickly checking if the given event is a release of the given button, whichButton. the letting-go check. π
See also
isButtonPressEvent(),isOfType(),getButton(),getState()
SbBool SoSpaceballButtonEvent::enumToString (Button enumval, SbString & stringrep) [static]
converts from an enum value of type SoMouseButtonEvent::Button to a string containing the enum symbol. glow-up from enum to string. π
this function is an extension for Coin, and it is not available in the original SGI Open Inventor v2.1 API.
Since β Coin 3.0
πΈ Author πΈ
generated automatically by Doxygen for Coin from the source code. not a human, just a very diligent robot. π€β¨
okay bestie that's the whole page!! this was SoSpaceballButtonEvent(3) from Coin, version 4.0.10, dated Thu Jun 25 2026 00:00:00. go press some spaceball buttons, you absolute legend. periodt. π
ππ¦πβπ
π¦ where this page comes from
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms