From 891f96e814e23bf413618f1adb8e93b53cc17251 Mon Sep 17 00:00:00 2001 From: Ishaan Bhardwaj Date: Thu, 3 Dec 2020 14:10:46 -0500 Subject: [PATCH] I broke the DAS switch functionality --- main.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/main.lua b/main.lua index d2c7d6e..393f7db 100644 --- a/main.lua +++ b/main.lua @@ -12,11 +12,15 @@ function love.load() config["side_next"] = false config["reverse_rotate"] = true config["fullscreen"] = false - config["das_last_key"] = false love.window.setMode(love.graphics.getWidth(), love.graphics.getHeight(), {resizable = true}); - if not config.gamesettings then config.gamesettings = {} end + if not config.gamesettings then + config.gamesettings = {} + config["das_last_key"] = false + else + config["das_last_key"] = config.gamesettings.das_last_key == 2 + end for _, option in ipairs(GameConfigScene.options) do if not config.gamesettings[option[1]] then config.gamesettings[option[1]] = 1