mousemoved handler

akkartik
May 20, 2024, 5:40 AM
2IOWGOPGRSHTEC7GRMS5VOYTHUXLWAYAXEMQUPYSBMPRFE4KDT3QC

Dependencies

Change contents

  • edit in main.lua at line 322
    [2.894]
    [2.894]
    function App.mousemoved(x,y, dx,dy, is_touch)
    if current_app_is_warning() then return end
    if Current_app == 'run' then
    if run.mouse_move then run.mouse_move(dx,dy) end
    elseif Current_app == 'source' then
    if source.mouse_move then source.mouse_move(dx,dy) end
    else
    assert(false, 'unknown app "'..Current_app..'"')
    end
    end