Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
move_cursor(3)			  Arcan Lua API 		  move_cursor(3)

NAME
     move_cursor - Set an absolute position for the mouse cursor.

SYNOPSIS
     nil
     move_cursor( x, y, clamp )

DESCRIPTION
     If  clamp	is  set  to  a	non-zero value (default, 0) x and y will NOT  be
     clamped to fit the screen.

EXAMPLE
     function move_cursor0()
	   print(cursor_position());
	   local img = fill_surface(32, 32, 255, 0, 0);
	   move_cursor(img, VRESW * 0.5, VRESH * 0.5);
	   print(cursor_position());
     end

SEE ALSO:
     nudge_cursor(3) resize_cursor(3) cursor_setstorage(3) cursor_position(3)

image				   August 2026			  move_cursor(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=move_cursor&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help