YoYo Games Wiki

display_mouse_set(x,y)

From YoYoGames Wiki

Description

This function sets the position of the mouse within the complete display.

Arguments

  • x (real): new x-position of the mouse
  • y (real): new y-position of the mouse

Explanation

This function will jump the mouse cursor to the given x and y position on the entire display.

Example

display_mouse_set(100,100);

The above example will jump the mouse cursor 100 pixels from the left and 100 pixels from the top of the entire display.

See Also

Content from GMKB, was used to expand this article. The content was contributed by nickydude.