SendMouseMoveEvent: Difference between revisions

From RAGE Multiplayer Wiki
 
Line 25: Line 25:


==See also==
==See also==
[[Browser_definition_c]]
{{Browser_definition_c}}
[[Category:Browser API]]
[[Category:Browser API]]
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:Client-side Function]]
[[Category:Client-side Function]]
[[Category:Shared Function]]
[[Category:Shared Function]]

Latest revision as of 20:37, 13 December 2024

Client-Side
Function

 JavaScript



JavaScript Syntax

Simulates mouse movement at the specified coordinates within the browser.

Required Params

  • x: Number - X-coordinate of the mouse movement.
  • y: Number - Y-coordinate of the mouse movement.

Return Value

  • void void

Syntax

browser.sendMouseMoveEvent(x, y);

Example

Client-Side
// Example: Simulating mouse movement to (500, 400).
browser.sendMouseMoveEvent(500, 400);


See also