new handler: mousemoved

akkartik
Dec 25, 2023, 10:37 PM
G42WRYFRKUYSVRZMVHKTDTX63VBYE5IUSJLVRMTTMRIDGX6TMHUAC

Dependencies

Change contents

  • edit in reference.md at line 78
    [4.3431]
    [4.3431]
    * `on.mouse_move(x,y, dx,dy, istouch)` -- called when you move the mouse.
    Provides in `x` and `y` the point on the screen at which the click occurred
    and in `dx` and `dy` the amount moved since the previous call of
    `mouse_move`.
    (Based on [LÖVE](https://love2d.org/wiki/love.mousemoved).)
  • edit in main.lua at line 194
    [7.181]
    [2.13]
    end
    function App.mousemoved(x,y, dx,dy, istouch)
    if on.mouse_move then on.mouse_move(x,y, dx,dy, istouch) end
  • file addition: 0154-on.mouse_move (----------)
    [8.2]
    on.mouse_move = function(x,y, dx,dy, istouch)
    if car.mousemoved then
    call_protected(car.mousemoved, x,y, dx,dy, istouch)
    end
    if car.mouse_move then
    call_protected(car.mouse_move, x,y, dx,dy, istouch)
    end
    end
  • edit in 0001-on at line 14
    [7.444]
    [3.400]
    -- on.mouse_move (see love.mousemoved)