SoSpaceballButtonEvent(3)
π SoSpaceballButtonEvent π (NAME)
okay so bestie, this is SoSpaceballButtonEvent β a page from the Library Functions Manual β and it's literally the class that holds all the tea about spaceball button interaction. π
β¨ SYNOPSIS β¨
#include <Inventor/events/SoSpaceballButtonEvent.h>
Inherits SoButtonEvent. π
πΈ 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β grab the actual type id of the object.SoSpaceballButtonEvent (void)β constructor, makes a new one.virtual ~SoSpaceballButtonEvent ()β destructor, says bye.void setButton (Button button)β set which button it was.Button getButton (void) constβ read which button it was.
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) constvoid setTime (const SbTime t)SbTime getTime (void) constvoid setPosition (const SbVec2s &p)const SbVec2s & getPosition (void) constconst SbVec2s getPosition (const SbViewportRegion &vpRgn) constconst SbVec2f getNormalizedPosition (const SbViewportRegion &vpRgn) constvoid setShiftDown (SbBool isDown)SbBool wasShiftDown (void) constvoid setCtrlDown (SbBool isDown)SbBool wasCtrlDown (void) constvoid 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 π¦
The SoSpaceballButtonEvent class contains information about spaceball button interaction. that's the whole assignment bestie. π«Ά
When the user presses any buttons on a spaceball device, these will be translated from a system specific event into a Coin event and sent to the scenegraph by using instances of this class. so like, your spaceball press goes through a whole glow-up journey before the scenegraph even hears about it. β¨
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 of them, no crumbs left. π
π§ Constructor & Destructor Documentation π§
π SoSpaceballButtonEvent::SoSpaceballButtonEvent (void )
Constructor.
π SoSpaceballButtonEvent::~SoSpaceballButtonEvent () [virtual]
Destructor.
π Member Function Documentation π
πΈ SoType SoSpaceballButtonEvent::getTypeId (void ) const [virtual]
Returns the actual type id of an instantiated object.
Reimplemented from SoButtonEvent.
πΈ void SoSpaceballButtonEvent::initClass (void ) [static]
Initialize the type information data.
πΈ void SoSpaceballButtonEvent::setButton (SoSpaceballButtonEvent::Button buttonarg)
Set 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.
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. lowkey the laziest way to check and that's a compliment. π
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.
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.
not me noticing the docs say SoMouseButtonEvent::Button in a spaceball page π anyway, that's exactly what it says, so I'm passing it along fr fr.
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. the robots wrote it, I just gave it main character energy. π
and that's the whole page bestie!! this one came from Coin, Version 3.1.3, and it's manual page SoSpaceballButtonEvent(3) β slay, go forth and handle your spaceball buttons πβ¨π
π¦ where this page comes from
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms