diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-12-23 20:43:37 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-12-23 20:43:37 -0800 |
commit | f351ee2f8f87fc8f84385ba1215be4e56f805ada (patch) | |
tree | 3a17572ac73975afc4a2f382943138dc207fb4b9 | |
parent | 7ef551b8210ecf0bfee32430f70543d68d4cc5f4 (diff) | |
download | view.love-f351ee2f8f87fc8f84385ba1215be4e56f805ada.tar.gz |
fix some arg names
-rw-r--r-- | main.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main.lua b/main.lua index 35f4e72..8e61b5f 100644 --- a/main.lua +++ b/main.lua @@ -209,16 +209,16 @@ function App.textinput(t) end end -function App.keyreleased(chord, key) +function App.keyreleased(key, scancode) -- ignore events for some time after window in focus (mostly alt-tab) if Current_time < Last_focus_time + 0.01 then return end -- if Current_app == 'run' then - if run.key_release then run.key_release(chord, key) end + if run.key_release then run.key_release(key, scancode) end elseif Current_app == 'source' then - if source.key_release then source.key_release(chord, key) end + if source.key_release then source.key_release(key, scancode) end else assert(false, 'unknown app "'..Current_app..'"') end |