SoSpaceballButtonEvent(3)

πŸ“¦ version 2.5.0, in fedora 43, fedora 44

πŸ’« 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) const
  • SoSpaceballButtonEvent (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) 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 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, SoKeyboardEvent
  • SoEventCallback, 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