Fires when the control Input mode is changed (e.g., switching from free flight mode to measurements mode).
SGWorld.attachEvent(“onInputModeChanged”, myOnInputModeChanged);
function myOnInputModeChanged(newMode)
Parameter |
Description |
newMode |
Determines the new input mode selected for the Skyline Globe Control Can be one of the following values: sgInputModeFreeFlight - free flight in the 3D Window sgInputModeComClient - customized input mode selected by a COM user sgInputModeControlledFlight - the camera is controlled by an operation (e.g., Fly to, Circle Pattern) sgInputModeEdit - Skyline Globe Control is in editing input mode sgInputModeMeasurament - Skyline Globe Control is in measurements input mode |
Remarks
The Skyline Globe Control has several “mouse input modes” depending on settings made by SGWorld.window.setInputMode method or by user interaction with the control. When this mode is changed, an event fires to indicate the input mode change. See SGWorld.window.setInputMode for more information.