distinguish consistently between mouse buttons and other buttons
[?]
Aug 23, 2022, 4:36 PM
5UKUADTWMNWPOPBBTXUXY7UNFW64DWANI2RQHKSCSZNWHTQM4GUACDependencies
- [2]
3OTESDW6move drawing.starty into line cache - [3]
HYEAFRZ2split mouse_pressed events between Text and Drawing - [4]
6E3HVYWFtest and App helper for mouse clicks - [5]
DLQAEAC7add state arg to Drawing.mouse_pressed - [6]
KTZQ57HVreplace globals with args in a few functions - [7]
YTSPVDZHfirst successful pagedown test, first bug found by test - [8]
L6XA5EY2test: moving a point - [9]
RT6EV6OPdelegate update events to drawings - [10]
C45WCXJ2keep drawings within the line width slider as well - [11]
LF7BWEG4group all editor globals - [12]
UHB4GARJleft/right margin -> left/right coordinates - [13]
LUNH47XXmake text and drawings the same width - [14]
QFC3WRDZchunking by simple local variable - [15]
2L5MEZV3experiment: new edit namespace - [16]
SRVDX4I5local var - [17]
VG75U7IMbugfix: typing should delete highlighted text - [18]
K2X6G75Zstart writing some tests for drawings - [19]
5DOTWNVMright margin - [20]
JF5L2BBStest harness now supports copy/paste - [21]
Y2ZIPXEMnew test - [22]
ZLJGZYQGselect text with shift + mouseclick - [23]
APYPFFS3call edit rather than App callbacks in tests - [24]
AVTNUQYRbasic test-enabled framework - [25]
QXVD2RIFadd state arg to Drawing.mouse_released - [26]
M6TH7VSZrip out notion of Line_width - [27]
6DE7RBZ6move mouse_released events to Drawing - [28]
WTDKUACNrectangle and square shapes - [29]
BJ2C6F2Bignore 'name' mode in a few places - [30]
2ENZW7TVselect text using mouse drag - [31]
JFFUF5ALoverride mouse state lookups in tests - [32]
LYN3L74Wcorrect commit f3abc2cbf2 - [*]
BLWAYPKVextract a module - [*]
3QNOKBFMbeginnings of a test harness
Change contents
- replacement in edit.lua at line 500
function edit.run_after_mouse_click(State, x,y, button)App.fake_mouse_press(x,y, button)edit.mouse_pressed(State, x,y, button)App.fake_mouse_release(x,y, button)edit.mouse_released(State, x,y, button)function edit.run_after_mouse_click(State, x,y, mouse_button)App.fake_mouse_press(x,y, mouse_button)edit.mouse_pressed(State, x,y, mouse_button)App.fake_mouse_release(x,y, mouse_button)edit.mouse_released(State, x,y, mouse_button) - replacement in edit.lua at line 509
function edit.run_after_mouse_press(State, x,y, button)App.fake_mouse_press(x,y, button)edit.mouse_pressed(State, x,y, button)function edit.run_after_mouse_press(State, x,y, mouse_button)App.fake_mouse_press(x,y, mouse_button)edit.mouse_pressed(State, x,y, mouse_button) - replacement in edit.lua at line 516
function edit.run_after_mouse_release(State, x,y, button)App.fake_mouse_release(x,y, button)edit.mouse_released(State, x,y, button)function edit.run_after_mouse_release(State, x,y, mouse_button)App.fake_mouse_release(x,y, mouse_button)edit.mouse_released(State, x,y, mouse_button) - replacement in drawing.lua at line 221
function Drawing.mouse_pressed(State, drawing_index, x,y, button)function Drawing.mouse_pressed(State, drawing_index, x,y, mouse_button) - replacement in drawing.lua at line 295
function Drawing.mouse_released(State, x,y, button)function Drawing.mouse_released(State, x,y, mouse_button) - replacement in app.lua at line 210
function App.fake_mouse_press(x,y, button)function App.fake_mouse_press(x,y, mouse_button) - replacement in app.lua at line 213
App.fake_mouse_state[button] = trueApp.fake_mouse_state[mouse_button] = true - replacement in app.lua at line 215
function App.fake_mouse_release(x,y, button)function App.fake_mouse_release(x,y, mouse_button) - replacement in app.lua at line 218
App.fake_mouse_state[button] = nilApp.fake_mouse_state[mouse_button] = nil - replacement in app.lua at line 224
function App.mouse_down(button)return App.fake_mouse_state[button]function App.mouse_down(mouse_button)return App.fake_mouse_state[mouse_button] - replacement in app.lua at line 253
function App.run_after_mouse_click(x,y, button)App.fake_mouse_press(x,y, button)App.mousepressed(x,y, button)App.fake_mouse_release(x,y, button)App.mousereleased(x,y, button)function App.run_after_mouse_click(x,y, mouse_button)App.fake_mouse_press(x,y, mouse_button)App.mousepressed(x,y, mouse_button)App.fake_mouse_release(x,y, mouse_button)App.mousereleased(x,y, mouse_button) - replacement in app.lua at line 262[3.777]→[3.5185:5269](∅→∅),[3.755]→[3.5185:5269](∅→∅),[3.5269]→[3.802:834](∅→∅),[3.802]→[3.802:834](∅→∅)
function App.run_after_mouse_press(x,y, button)App.fake_mouse_press(x,y, button)App.mousepressed(x,y, button)function App.run_after_mouse_press(x,y, mouse_button)App.fake_mouse_press(x,y, mouse_button)App.mousepressed(x,y, mouse_button) - replacement in app.lua at line 269
function App.run_after_mouse_release(x,y, button)App.fake_mouse_release(x,y, button)App.mousereleased(x,y, button)function App.run_after_mouse_release(x,y, mouse_button)App.fake_mouse_release(x,y, mouse_button)App.mousereleased(x,y, mouse_button)