wire up mouse move handler

akkartik
Dec 26, 2023, 4:27 PM
Z36V5MM7M6LDHBBDU3J2PJ7TZ6KX5GIP2KENQGBSDSALXTYUGOAQC

Dependencies

  • [2] 4H4JTSFI mouse wheel support
  • [3] EUWHJ7JJ include a brief reference enabling many useful apps
  • [*] TNRO6KLZ new live app
  • [*] CCVA7636 bundle a few more things

Change contents

  • edit in reference.md at line 63
    [3.2778]
    [3.2778]
    * `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 410
    [2.9]
    [2.9]
    function love.mousemoved(x,y, dx,dy, istouch)
    if Mode == 'error' then return end
    if on.mouse_move then on.mouse_move(x,y, dx,dy, istouch) end
    end
  • edit in 0001-on at line 15
    [6.1275]
    [2.111]
    -- on.mouse_move (see love.mousemoved)