Merge text0
[?]
Sep 4, 2023, 9:17 PM
UZHSWA3DU3BPK6AGNIVZUEGPRTHIBA7SSX4DRUN3K4D42KNNN4YQCDependencies
- [2]
NILDKUJVMerge text0 - [3]
KE4T63TSstop using keyboard.isDown - [4]
ORRSP7FVdeduce test names on failures - [5]
HLIF3YQEMerge text0 - [6]
AVTNUQYRbasic test-enabled framework - [7]
7IDHIAYIrename modifier_down to key_down - [8]
JFFUF5ALoverride mouse state lookups in tests - [9]
N4T2HHMVMerge text0 - [10]
HKV72RZVbugfix: save modified files in save directory - [11]
JNJ4R56Xsupport running tests multiple times - [12]
ED4Z6ORCcleaner API for file-system access - [13]
JCXL74WVbring back everything from commit a68647ae22 - [14]
FPY4LO2Wmake a few names consistent with snake_case - [*]
3QNOKBFMbeginnings of a test harness - [*]
CUFW4EJLreorganize app.lua and its comments
Change contents
- edit in app.lua at line 2
local Keys_down = {} - edit in app.lua at line 9[17.69][17.69]
-- * recover from errors (by sending them to the driver and waiting for a command) - replacement in app.lua at line 20
love.handlers[name] = App[name]-- love.keyboard.isDown doesn't work on Android, so emulate it using-- keypressed and keyreleased eventsif name == 'keypressed' thenlove.handlers[name] = function(key, scancode, isrepeat)Keys_down[key] = truereturn App.keypressed(key, scancode, isrepeat)endelseif name == 'keyreleased' thenlove.handlers[name] = function(key, scancode)Keys_down[key] = nilreturn App.keyreleased(key, scancode)endelselove.handlers[name] = App[name]end - replacement in app.lua at line 66
-- dispatch some methods to real hardware-- other methods dispatch to real hardware - replacement in app.lua at line 99
App.key_down = love.keyboard.isDownApp.key_down = function(key) return Keys_down[key] end - edit in app.lua at line 489[4.16026]→[3.36:58](∅→∅),[4.16026]→[3.36:58](∅→∅),[4.7787]→[3.59:755](∅→∅),[4.7787]→[3.59:755](∅→∅),[4.1018]→[3.756:813](∅→∅),[4.1018]→[3.756:813](∅→∅),[4.1018]→[3.756:813](∅→∅)
local Keys_down = {}-- love.keyboard.isDown doesn't work on Android, so emulate it using-- keypressed and keyreleased eventsif name == 'keypressed' thenlove.handlers[name] = function(key, scancode, isrepeat)Keys_down[key] = truereturn App.keypressed(key, scancode, isrepeat)endelseif name == 'keyreleased' thenlove.handlers[name] = function(key, scancode)Keys_down[key] = nilreturn App.keyreleased(key, scancode)endelselove.handlers[name] = App[name]endApp.key_down = function(key) return Keys_down[key] end