diff --git a/main.lua b/main.lua index 7c2e34c..1a1d440 100644 --- a/main.lua +++ b/main.lua @@ -85,6 +85,12 @@ function App.initialize_globals() end function App.initialize(arg) + love.window.setVSync(0) -- remove some delays in exchange for risk of screen tears; we're not a game + love.keyboard.setTextInput(true) -- bring up keyboard on touch screen + love.keyboard.setKeyRepeat(true) + + love.graphics.setBackgroundColor(1,1,1) + if Current_app == 'run' then run.initialize(arg) elseif Current_app == 'source' then diff --git a/run.lua b/run.lua index fb1f9c1..3035319 100644 --- a/run.lua +++ b/run.lua @@ -16,11 +16,6 @@ end -- called only for real run function run.initialize(arg) log_new('run') - love.keyboard.setTextInput(true) -- bring up keyboard on touch screen - love.keyboard.setKeyRepeat(true) - - love.graphics.setBackgroundColor(1,1,1) - if Settings then run.load_settings() else diff --git a/source.lua b/source.lua index 0d12415..baecdd1 100644 --- a/source.lua +++ b/source.lua @@ -61,11 +61,6 @@ end -- called only for real run function source.initialize() log_new('source') - love.keyboard.setTextInput(true) -- bring up keyboard on touch screen - love.keyboard.setKeyRepeat(true) - - love.graphics.setBackgroundColor(1,1,1) - if Settings and Settings.source then source.load_settings() else