onMButtonDblClick Event

Fires when the user double clicks the middle mouse button in the 3D window.

SGWorld.attachEvent(“onMButtonDblClick”, myOnMButtonDblClick);

function myOnMButtonDblClick (flags, x, y)

 

Parameter

Description

flags

Indicates if a virtual key is down

Can be any combination of the following values:

  • Left button = 1

  • Right button = 2

  • Shift = 4

  • Control = 8

  • Middle button = 16

x

The x coordinate of the mouse

The coordinates are given in screen coordinates, with the origin at the top-left corner of the 3D Window

y

The y coordinate of the mouse

The coordinates are given in screen coordinates, with the origin at the top-left corner of the 3D Window

Remarks

Returning true informs Skyline Globe Control that the user handled the mouse action and does not wish Skyline Globe Control to respond to the mouse action. When false is returned, Skyline Globe Control handles the mouse action normally.