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
public class SoButtonEvent extends SoEvent
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, namelySoControllerButtonEvent
,SoKeyboardEvent
,SoMouseButtonEvent
, andSoSpaceballButtonEvent
. This class stores the down/up state of the button when the event occurred.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SoButtonEvent.States
State.-
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 SoButtonEvent()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SoButtonEvent.States
getState()
Gets the state of the button.void
setState(SoButtonEvent.States s)
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
-
-
-
-
Method Detail
-
setState
public void setState(SoButtonEvent.States s)
Sets the state of the button.
-
getState
public SoButtonEvent.States getState()
Gets the state of the button.
-
-