about summary refs log tree commit diff stats
path: root/keychord.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-05-22 18:27:48 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-05-22 18:29:52 -0700
commitf421e1daa52a52956f40b3ee6d8b527ba1c30d5a (patch)
treee1a6a9c166cb53d0a9f61942193e93e3d40ad7c6 /keychord.lua
parent555726a87daf815d71e73c89749f56d0ac525717 (diff)
downloadlines.love-f421e1daa52a52956f40b3ee6d8b527ba1c30d5a.tar.gz
basic test-enabled framework
Tests still have a lot of side-effects on the real screen. We'll
gradually clean those up.
Diffstat (limited to 'keychord.lua')
-rw-r--r--keychord.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/keychord.lua b/keychord.lua
index d9b89f5..12feef7 100644
--- a/keychord.lua
+++ b/keychord.lua
@@ -1,14 +1,14 @@
 -- Keyboard driver
 
-function love.keypressed(key, scancode, isrepeat)
+function App.keypressed(key, scancode, isrepeat)
   if key == 'lctrl' or key == 'rctrl' or key == 'lalt' or key == 'ralt' or key == 'lshift' or key == 'rshift' or key == 'lgui' or key == 'rgui' then
     -- do nothing when the modifier is pressed
   end
   -- include the modifier(s) when the non-modifer is pressed
-  keychord_pressed(combine_modifiers(key))
+  App.keychord_pressed(App.combine_modifiers(key))
 end
 
-function combine_modifiers(key)
+function App.combine_modifiers(key)
   local result = ''
   local down = love.keyboard.isDown
   if down('lctrl') or down('rctrl') then