man SoSpaceballButtonEvent () - spaceball button press and release events

NAME

SoSpaceballButtonEvent - spaceball button press and release events

INHERITS FROM

SoEvent > SoButtonEvent > SoSpaceballButtonEvent

SYNOPSIS

#include <Inventor/events/SoSpaceballButtonEvent.h> #define SO_SPACEBALL_PRESS_EVENT(EVENT,BUTTON) (SoSpaceballButtonEvent::isButtonPressEvent(EVENT, SoSpaceballButtonEvent::BUTTON))

#define SO_SPACEBALL_RELEASE_EVENT(EVENT,BUTTON) (SoSpaceballButtonEvent::isButtonReleaseEvent(EVENT, SoSpaceballButtonEvent::BUTTON)) enum Button { c } c } Any spaceball button

c } c } Spaceball button 1

c } c } Spaceball button 2

c } c } Spaceball button 3

c } c } Spaceball button 4

c } c } Spaceball button 5

c } c } Spaceball button 6

c } c } Spaceball button 7

c } c } Spaceball button 8

c } c } Spaceball pick button

} Methods from class SoSpaceballButtonEvent: c } c } SoSpaceballButtonEvent()

c } c } getClassTypeId()

c } c } setButton(SoSpaceballButtonEvent::Button b)

c } c } getButton() const

c } c } isButtonPressEvent(const SoEvent *e, SoSpaceballButtonEvent::Button whichButton)

c } c } isButtonReleaseEvent(const SoEvent *e, SoSpaceballButtonEvent::Button whichButton) Methods from class SoButtonEvent: c } c } setState(SoButtonEvent::State s)

c } c } getState() const Methods from class SoEvent: c } c } getTypeId() const

c } c } isOfType(SoType type) const

c } c } setTime(SbTime t)

c } c } getTime() const

c } c } setPosition(const SbVec2s &p)

c } c } getPosition() const

c } c } getPosition(const SbViewportRegion &vpRgn) const

c } c } getNormalizedPosition(const SbViewportRegion &vpRgn) const

c } c } setShiftDown(SbBool isDown)

c } c } setCtrlDown(SbBool isDown)

c } c } setAltDown(SbBool isDown)

c } c } wasShiftDown() const

c } c } wasCtrlDown() const

c } c } wasAltDown() const

DESCRIPTION

SoSpaceballButtonEvent represents spaceball button press and release events in the Inventor event model.

METHODS

c } c } SoSpaceballButtonEvent()

Constructor. c } c } getClassTypeId()

Return the type id for the SoSpaceballButtonEvent class. c } c } setButton(SoSpaceballButtonEvent::Button b)

c } c } getButton() const

Set and get which spaceball button generated the event. c } c } isButtonPressEvent(const SoEvent *e, SoSpaceballButtonEvent::Button whichButton)

c } c } isButtonReleaseEvent(const SoEvent *e, SoSpaceballButtonEvent::Button whichButton)

Returns whether the passed event is a spaceball button press or release event of the passed button. When SoSpaceballButtonEvent::ANY is passed, this returns TRUE if the event represents a button press or release of any spaceball button.

SEE ALSO

SoEvent, SoButtonEvent, SoKeyboardEvent, SoLocation2Event, SoMotion3Event, SoMouseButtonEvent, SoHandleEventAction, SoEventCallback, SoSelection, SoInteraction, SoXtDevice