lovr.mousemoved

Edit

This callback is called when the mouse is moved.

function lovr.mousemoved(x, y, dx, dy)
  -- your code here
end

Arguments

NameTypeDescription
xnumber The new x position of the mouse.
ynumber The new y position of the mouse.
dxnumber The movement on the x axis since the last mousemove event.
dynumber The movement on the y axis since the last mousemove event.

Returns

Nothing

See also