SoSpaceballButtonEvent(3)
π« SoSpaceballButtonEvent(3) β Library Functions Manual π«
okay bestie, gather round, because we're talking about SoSpaceballButtonEvent from section 3 of the manual (Library Functions Manual, iykyk) π«Ά
β¨ NAME β¨
SoSpaceballButtonEvent β the class that holds all the tea about spaceball button interaction π°οΈπ
πΈ SYNOPSIS πΈ
#include <Inventor/events/SoSpaceballButtonEvent.h>
Inherits SoButtonEvent. It's giving legacy, it's giving "my ancestor is SoEvent", and honestly? Iconic. π
π¦ 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) constSoSpaceballButtonEvent (void)virtual ~SoSpaceballButtonEvent ()void setButton (SoSpaceballButtonEvent::Button button)SoSpaceballButtonEvent::Button getButton (void) const
π Public Member Functions inherited from SoButtonEvent
SoButtonEvent (void)virtual ~SoButtonEvent ()void setState (SoButtonEvent::State state)SoButtonEvent::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 SbBool isButtonPressEvent (const SoEvent *e, SoSpaceballButtonEvent::Button whichButton)static SbBool isButtonReleaseEvent (const SoEvent *e, SoSpaceballButtonEvent::Button whichButton)static void initClass (void)
π§ Static Public Member Functions inherited from SoButtonEvent
static SoType getClassTypeId (void)static void initClass (void)
π 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. No cap. π°οΈπ
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β¦ the spaceball does a thing, Coin goes "say less", and an event gets yeeted straight into the scenegraph. Main character energy fr fr. β¨
π 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. It's giving birth to an event, literally. π£
Referenced by getTypeId(), initClass(), isButtonPressEvent(), and isButtonReleaseEvent().
π SoSpaceballButtonEvent::~SoSpaceballButtonEvent () [virtual]
Destructor. RIP to the event, you served cunt. ππ
β¨ Member Function Documentation β¨
π SoType SoSpaceballButtonEvent::getTypeId (void ) const [virtual]
Returns the actual type id of an instantiated object. Like, who are you really. πͺ
Reimplemented from SoButtonEvent.
References SoSpaceballButtonEvent().
π― void SoSpaceballButtonEvent::setButton (SoSpaceballButtonEvent::Button buttonarg)
Set the value of the button which the user interacted with. Tell it which button got pressed, bestie. π«΅
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. Which button was it? The plot thickens. π
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. It's the "did they press it tho" check. Fast, effortless, slay. π
See also
isButtonReleaseEvent(),isOfType(),getButton(),getState()
References SoButtonEvent::DOWN, SoEvent::isOfType(), SoButtonEvent::SoButtonEvent(), SoEvent::SoEvent(), and SoSpaceballButtonEvent().
πΈ 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 "okay they let go, we can all relax now" check. π
See also
isButtonPressEvent(),isOfType(),getButton(),getState()
References SoEvent::isOfType(), SoButtonEvent::SoButtonEvent(), SoEvent::SoEvent(), SoSpaceballButtonEvent(), and SoButtonEvent::UP.
π§ void SoSpaceballButtonEvent::initClass (void ) [static]
Initialize the type information data. Gotta set up the whole type system before anything else shows up to the party. π
References SoButtonEvent::SoButtonEvent(), and SoSpaceballButtonEvent().
π Author π
Generated automatically by Doxygen for Coin from the source code. Not a human, not a girlie, just a doc generator doing its lil thing. π€β¨
okay that's the whole page bestie, go forth and handle those spaceball events π
Coin β Version 2.5.0 β SoSpaceballButtonEvent(3) π¦ mwah, drink water, close your fds π
π¦ where this page comes from
- fedora 43: Coin2-devel 2.5.0-52.fc43 Β· GPL-2.0-only
- fedora 43: Coin2-devel 2.5.0-52.fc43 Β· GPL-2.0-only
- fedora 44: Coin2-devel 2.5.0-54.fc44 Β· GPL-2.0-only
- fedora 44: Coin2-devel 2.5.0-54.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