manually maintain mouse button press state

akkartik
Dec 2, 2023, 5:56 AM
XZ6QVCTTDQSCNGY352CFHBUYSJ3YQCTRI2S6V5XITY35B42QTCJQC

Dependencies

  • [2] 6XCJX4DZ bugfix: inscript's bug
  • [3] 4CXVIEBS add args to some functions
  • [4] JFFUF5AL override mouse state lookups in tests
  • [5] S2MISTTM add state arg to a few functions
  • [6] QJISOCHJ some temporary logging to catch a bug
  • [7] LXTTOB33 extract a couple of files
  • [8] LF7BWEG4 group all editor globals
  • [9] MXA3RZYK deduce left/right from state where possible
  • [10] DRFE3B3Z mouse buttons are integers, not strings
  • [*] 2L5MEZV3 experiment: new edit namespace
  • [*] LNUHQOGH start passing in Editor_state explicitly

Change contents

  • replacement in select.lua at line 14
    [3.44671][3.1185:1213]()
    if App.mouse_down(1) then
    [3.44671]
    [3.4008]
    if State.mouse_down then
  • edit in edit.lua at line 236
    [13.4581]
    [2.2149]
    State.mouse_down = mouse_button
  • edit in edit.lua at line 301
    [2.2703]
    [13.5339]
    State.mouse_down = nil