Package com.openinventor.inventor.events
Class SoSpaceballButtonEvent
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.events.SoEvent
-
- com.openinventor.inventor.events.SoButtonEvent
-
- com.openinventor.inventor.events.SoSpaceballButtonEvent
-
public class SoSpaceballButtonEvent extends SoButtonEvent
Spaceball button press and release events.SoSpaceballButtonEvent
represents spaceball button press and release events in the Open Inventor event model.Some convenience macros for determining if an event matches
- SO_SPACEBALL_PRESS_EVENT(EVENT,BUTTON)
- SO_SPACEBALL_RELEASE_EVENT(EVENT,BUTTON)
- See Also:
SoEvent
,SoButtonEvent
,SoKeyboardEvent
,SoLocation2Event
,SoMotion3Event
,SoMouseButtonEvent
,SoHandleEventAction
,SoEventCallback
,SoSelection SoInteraction
,SoWinDevice
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SoSpaceballButtonEvent.Buttons
Button.-
Nested classes/interfaces inherited from class com.openinventor.inventor.events.SoButtonEvent
SoButtonEvent.States
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SoSpaceballButtonEvent()
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SoSpaceballButtonEvent.Buttons
getButton()
Gets which spaceball button generated the event.static boolean
isButtonPressEvent(SoEvent e, SoSpaceballButtonEvent.Buttons whichButton)
Returns whether the passed event is a spaceball button press event of the passed button.static boolean
isButtonReleaseEvent(SoEvent e, SoSpaceballButtonEvent.Buttons whichButton)
Returns whether the passed event is a spaceball button release event of the passed button.void
setButton(SoSpaceballButtonEvent.Buttons b)
Sets which spaceball button generated the event.-
Methods inherited from class com.openinventor.inventor.events.SoButtonEvent
getState, setState
-
Methods inherited from class com.openinventor.inventor.events.SoEvent
getNormalizedPosition, getPosition, getPosition, getPositionFloat, getPositionFloat, getTime, setAltDown, setButton1Down, setCtrlDown, setPosition, setPosition, setShiftDown, setTime, wasAltDown, wasButton1Down, wasCtrlDown, wasShiftDown
-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Method Detail
-
isButtonPressEvent
public static boolean isButtonPressEvent(SoEvent e, SoSpaceballButtonEvent.Buttons whichButton)
Returns whether the passed event is a spaceball button press event of the passed button. WhenSoSpaceballButtonEvent.ANY
is passed, this returns true if the event represents a button press of any spaceball button.
-
setButton
public void setButton(SoSpaceballButtonEvent.Buttons b)
Sets which spaceball button generated the event.
-
getButton
public SoSpaceballButtonEvent.Buttons getButton()
Gets which spaceball button generated the event.
-
isButtonReleaseEvent
public static boolean isButtonReleaseEvent(SoEvent e, SoSpaceballButtonEvent.Buttons whichButton)
Returns whether the passed event is a spaceball button release event of the passed button. WhenSoSpaceballButtonEvent.ANY
is passed, this returns true if the event represents a button release of any spaceball button.
-
-