SoSpaceballButtonEvent — spaceball button press and release events
Contents
Description
SoSpaceballButtonEvent represents spaceball button press and release events in the Inventor event model.
Inherits From
SoEvent > SoButtonEvent > SoSpaceballButtonEvent
Methods
SoSpaceballButtonEvent()
Constructor.
staticSoTypegetClassTypeId()
Return the type id for the SoSpaceballButtonEvent class.
voidsetButton(SoSpaceballButtonEvent::Buttonb)SoSpaceballButtonEvent::ButtongetButton()const
Set and get which spaceball button generated the event.
staticSbBoolisButtonPressEvent(constSoEvent*e,SoSpaceballButtonEvent::ButtonwhichButton)staticSbBoolisButtonReleaseEvent(constSoEvent*e,SoSpaceballButtonEvent::ButtonwhichButton)
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.
Name
SoSpaceballButtonEvent — spaceball button press and release events
See Also
SoEvent,SoButtonEvent,SoKeyboardEvent,SoLocation2Event,SoMotion3Event,SoMouseButtonEvent,SoHandleEventAction,SoEventCallback,SoSelection,SoInteraction,SoXtDeviceSoSpaceballButtonEvent(3IV)()
Synopsis
#include<Inventor/events/SoSpaceballButtonEvent.h>#defineSO_SPACEBALL_PRESS_EVENT(EVENT,BUTTON)(SoSpaceballButtonEvent::isButtonPressEvent(EVENT,SoSpaceballButtonEvent::BUTTON))#defineSO_SPACEBALL_RELEASE_EVENT(EVENT,BUTTON)(SoSpaceballButtonEvent::isButtonReleaseEvent(EVENT,SoSpaceballButtonEvent::BUTTON))enumButton{SoSpaceballButtonEvent::ANY Any spaceball button
SoSpaceballButtonEvent::BUTTON1
Spaceball button 1
SoSpaceballButtonEvent::BUTTON2
Spaceball button 2
SoSpaceballButtonEvent::BUTTON3
Spaceball button 3
SoSpaceballButtonEvent::BUTTON4
Spaceball button 4
SoSpaceballButtonEvent::BUTTON5
Spaceball button 5
SoSpaceballButtonEvent::BUTTON6
Spaceball button 6
SoSpaceballButtonEvent::BUTTON7
Spaceball button 7
SoSpaceballButtonEvent::BUTTON8
Spaceball button 8
SoSpaceballButtonEvent::PICK Spaceball pick button
}
Methods from class SoSpaceballButtonEvent:
SoSpaceballButtonEvent()staticSoTypegetClassTypeId()voidsetButton(SoSpaceballButtonEvent::Buttonb)SoSpaceballButtonEvent::ButtongetButton()conststaticSbBoolisButtonPressEvent(constSoEvent*e,SoSpaceballButtonEvent::ButtonwhichButton)staticSbBoolisButtonReleaseEvent(constSoEvent*e,SoSpaceballButtonEvent::ButtonwhichButton)
Methods from class SoButtonEvent:
voidsetState(SoButtonEvent::States)SoButtonEvent::StategetState()const
Methods from class SoEvent:
virtualSoTypegetTypeId()constSbBoolisOfType(SoTypetype)constvoidsetTime(SbTimet)SbTimegetTime()constvoidsetPosition(constSbVec2s&p)constSbVec2s&getPosition()constconstSbVec2s&getPosition(constSbViewportRegion&vpRgn)constconstSbVec2f&getNormalizedPosition(constSbViewportRegion&vpRgn)constvoidsetShiftDown(SbBoolisDown)voidsetCtrlDown(SbBoolisDown)voidsetAltDown(SbBoolisDown)SbBoolwasShiftDown()constSbBoolwasCtrlDown()constSbBoolwasAltDown()const