lovr.wheelmoved

Edit

This callback is called on scroll action, from a mouse wheel or a touchpad

function lovr.wheelmoved(dx, dy)
  -- your code here
end

Arguments

NameTypeDescription
dxnumber The relative horizontal motion; rightward movement resuts in positive values.
dynumber The relative vertical motion; upward movement results in positive values.

Returns

Nothing

See also