Package com.openinventor.inventor.events
Class SoButtonEvent
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.events.SoEvent
com.openinventor.inventor.events.SoButtonEvent
- Direct Known Subclasses:
SoControllerButtonEvent
,SoKeyboardEvent
,SoMouseButtonEvent
,SoSpaceballButtonEvent
Base class for all button events.
SoButtonEvent
represents generic button press and release events in the Open Inventor event model. It is the base class for device-specific button events, namely SoControllerButtonEvent
, SoKeyboardEvent
, SoMouseButtonEvent
, and SoSpaceballButtonEvent
. This class stores the down/up state of the button when the event occurred.
- See Also:
-
Nested Class Summary
Nested ClassesNested 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 -
Method Summary
Modifier and TypeMethodDescriptiongetState()
Gets the state of the button.void
Sets the state of the button.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
-
Constructor Details
-
SoButtonEvent
public SoButtonEvent()Constructor.
-
-
Method Details
-
setState
Sets the state of the button. -
getState
Gets the state of the button.
-