WoW:API CameraOrSelectOrMoveStop: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Simulates releasing the left mouse button)
 
m (Move page script moved page API CameraOrSelectOrMoveStop to API CameraOrSelectOrMoveStop without leaving a redirect)
 
(5 intermediate revisions by 5 users not shown)
Line 1: Line 1:
Simulates releasing the left mouse button.
{{wowapi}}
{{protectedapi|1.10|}}
End "Left click" in the 3D game world.


Example:
CameraOrSelectOrMoveStop([stickyFlag])
== Parameters ==
=== Arguments ===
:([stickyFlag])


/script CameraOrSelectOrMoveStop();
:;stickyFlag : Flag <small>''(optional)''</small> - If present and set then any camera offset is 'sticky' and remains until explicitly cancelled.
=== Returns ===
:''nil''




== Details ==
: This function is called when left clicking in the 3-D world.


Used in conjunction with the CameraOrSelectOrMoveStart command, simulates a left mouse click.
: When used alone, can cancel a "mouselook" started by a call to [[API CameraOrSelectOrMoveStart|CameraOrSelectOrMoveStart]].


Example:
: IMPORTANT: The normal restrictions regarding hardware event initiations still apply to anything this function might do.
 
__NOTOC__
/script CameraOrSelectOrMoveStart();
 
/script CameraOrSelectOrMoveStop();
 
 
Result is context sensitive, as the name of the command itself implies; is not a "true" left mouseclick, as it will not activate UI buttons.

Latest revision as of 04:45, 15 August 2023

WoW API < CameraOrSelectOrMoveStop

End "Left click" in the 3D game world.

CameraOrSelectOrMoveStop([stickyFlag])

Parameters[edit]

Arguments[edit]

([stickyFlag])
stickyFlag
Flag (optional) - If present and set then any camera offset is 'sticky' and remains until explicitly cancelled.

Returns[edit]

nil


Details[edit]

This function is called when left clicking in the 3-D world.
When used alone, can cancel a "mouselook" started by a call to CameraOrSelectOrMoveStart.
IMPORTANT: The normal restrictions regarding hardware event initiations still apply to anything this function might do.