onRButtonUp Event

Fires when user releases the right mouse button.

SGWorld.attachEvent(“onRButtonUp”, myOnRButtonUp);

function myOnRButtonUp(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.