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

NAME
     nudge_cursor - Move the mouse cursor relative to its current position.

SYNOPSIS
     nil
     nudge_cursor( d_x, d_y, clamp )

DESCRIPTION
     if clamp  is set to a non- zero value (default: 0) the coordinates will NOT
      be clamped to fit the screen.

EXAMPLE
     function nudge_cursor0()
	   move_cursor(VRESW * 0.5, VRESH * 0.5);
	   print(cursor_position());
	   nudge_cursor(15, -15);
	   print(cursor_position());
     end

SEE ALSO:
image				   August 2026			 nudge_cursor(3)

home | help