public class SoButtonEvent extends SoEvent
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:
SoEvent, SoControllerButtonEvent, SoKeyboardEvent, SoLocation2Event, SoMotion3Event, SoMouseButtonEvent, SoSpaceballButtonEvent, SoHandleEventAction, SoEventCallback, SoSelection, SoInteraction, SoWinDevice
| Modifier and Type | Class and Description |
|---|---|
static class |
SoButtonEvent.States
State.
|
Inventor.ConstructorCommand| Modifier and Type | Field and Description |
|---|---|
static int |
DBCLK
Deprecated.
Use
SoButtonEvent.States.DBCLK instead. |
static int |
DOWN
Deprecated.
Use
SoButtonEvent.States.DOWN instead. |
static int |
UNKNOWN
Deprecated.
Use
SoButtonEvent.States.UNKNOWN instead. |
static int |
UP
Deprecated.
Use
SoButtonEvent.States.UP instead. |
VERBOSE_LEVEL, ZeroHandle| Constructor and Description |
|---|
SoButtonEvent()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
SoButtonEvent.States |
getState()
Gets the state of the button.
|
void |
setState(SoButtonEvent.States s)
Sets the state of the button.
|
getNormalizedPosition, getPosition, getPosition, getPositionFloat, getPositionFloat, getTime, setAltDown, setButton1Down, setCtrlDown, setPosition, setPosition, setShiftDown, setTime, wasAltDown, wasButton1Down, wasCtrlDown, wasShiftDowndispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads@Deprecated public static final int UP
SoButtonEvent.States.UP instead.@Deprecated public static final int DOWN
SoButtonEvent.States.DOWN instead.@Deprecated public static final int DBCLK
SoButtonEvent.States.DBCLK instead.@Deprecated public static final int UNKNOWN
SoButtonEvent.States.UNKNOWN instead.public void setState(SoButtonEvent.States s)
public SoButtonEvent.States getState()
Generated on July 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com