diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2023-01-16 10:23:57 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2023-01-16 10:23:57 -0800 |
commit | 85b24c81c9dbc7feac083bcb72269b272d052a68 (patch) | |
tree | 57c5752c0c42323f9e18269415f0fea081b2ed15 | |
parent | 5c0323bdbd83b16af8042491e8e38ca10bbf0bd0 (diff) | |
parent | 44fbb51161b425540a4d5ef5a3c87df0c73a4e6f (diff) | |
download | view.love-85b24c81c9dbc7feac083bcb72269b272d052a68.tar.gz |
Merge text.love
-rw-r--r-- | main.lua | 6 | ||||
-rw-r--r-- | run.lua | 5 | ||||
-rw-r--r-- | source.lua | 5 |
3 files changed, 6 insertions, 10 deletions
diff --git a/main.lua b/main.lua index b6d1a5d..5e434c6 100644 --- a/main.lua +++ b/main.lua @@ -84,6 +84,12 @@ function App.initialize_globals() end function App.initialize(arg) + love.window.setVSync(0) -- simplify profiling; 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 2ada1ba..5806cae 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 3ad4b12..3501185 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 |