This method retrieves the input mode of the mouse.
HRESULT GetMouseInputMode(
[out, retval] MouseInputMode* InputMode)
Parameters:
InputMode – Determines the new input mode selected. This parameter can be one of the following values:
MI_FREE_FLIGHT = 0
Free flight in the 3D Window.
MI_COM_CLIENT = 1
Customized input mode selected by a COM user.
MI_CONTROLLED_FLIGHT = 2
The camera is controlled by an operation (e.g., Fly to, Circle
Pattern).
MI_EDIT = 3
TerraExplorer is in editing input mode.
MI_MEASURAMENT = 4
TerraExplorer is in measurements input mode.
Return Values:
The return value obtained from the returned HRESULT can be one of the following:
Return value |
Meaning |
S_OK |
Success. |
TE_E_MPTNOTLOADED |
An MPT file must be loaded in TerraExplorer for this method to work. |