Spaceball button press and release events. More...
#include <Inventor/events/SoSpaceballButtonEvent.h>
Public Types | |
enum | Button { ANY = 0, BUTTON1 = 1, BUTTON2 = 2, BUTTON3 = 3, BUTTON4 = 4, BUTTON5 = 5, BUTTON6 = 6, BUTTON7 = 7, BUTTON8 = 8, PICK = 9 } |
Public Member Functions | |
virtual SoType | getTypeId () const |
SoSpaceballButtonEvent () | |
void | setButton (SoSpaceballButtonEvent::Button b) |
SoSpaceballButtonEvent::Button | getButton () const |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static SbBool | isButtonPressEvent (const SoEvent *e, SoSpaceballButtonEvent::Button whichButton) |
static SbBool | isButtonReleaseEvent (const SoEvent *e, SoSpaceballButtonEvent::Button whichButton) |
SoSpaceballButtonEvent represents spaceball button press and release events in the Open Inventor event model.
Some convenience macros for determining if an event matches
SoEvent, SoButtonEvent, SoKeyboardEvent, SoLocation2Event, SoMotion3Event, SoMouseButtonEvent, SoHandleEventAction, SoEventCallback, SoSelection, SoInteraction, SoWinDevice
SoSpaceballButtonEvent::SoSpaceballButtonEvent | ( | ) |
Constructor.
SoSpaceballButtonEvent::Button SoSpaceballButtonEvent::getButton | ( | ) | const [inline] |
Gets which spaceball button generated the event.
static SoType SoSpaceballButtonEvent::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoButtonEvent.
virtual SoType SoSpaceballButtonEvent::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoButtonEvent.
static SbBool SoSpaceballButtonEvent::isButtonPressEvent | ( | const SoEvent * | e, | |
SoSpaceballButtonEvent::Button | whichButton | |||
) | [static] |
Returns whether the passed event is a spaceball button press event of the passed button.
When SoSpaceballButtonEvent::ANY is passed, this returns TRUE if the event represents a button press of any spaceball button.
static SbBool SoSpaceballButtonEvent::isButtonReleaseEvent | ( | const SoEvent * | e, | |
SoSpaceballButtonEvent::Button | whichButton | |||
) | [static] |
Returns whether the passed event is a spaceball button release event of the passed button.
When SoSpaceballButtonEvent::ANY is passed, this returns TRUE if the event represents a button release of any spaceball button.
void SoSpaceballButtonEvent::setButton | ( | SoSpaceballButtonEvent::Button | b | ) | [inline] |
Sets which spaceball button generated the event.