wire up mouse move handler

akkartik
Dec 26, 2023, 4:28 PM
JSDWXYKOKSBABKM53V2OHHQMULPR67USQWTFQEZ7MDN4TDEKJFBQC

Dependencies

Change contents

  • edit in reference.md at line 87
    [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 192
    [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
  • edit in 0001-on at line 15
    [7.444]
    [3.400]
    -- on.mouse_move (see love.mousemoved)