diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2025-05-06 13:36:03 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2025-05-06 13:36:03 -0700 |
commit | bac6c8ae8710099014236029d1fab1f71394a4c5 (patch) | |
tree | 24fc17562d6dd190f022682aa6e9137d7e558b5a | |
parent | a03e4a9c0289f9cf49030f896ce1883ba8113747 (diff) | |
download | lines.love-bac6c8ae8710099014236029d1fab1f71394a4c5.tar.gz |
standardize name
-rw-r--r-- | app.lua | 4 | ||||
-rw-r--r-- | keychord.lua | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/app.lua b/app.lua index 1bec1f0..2375ff9 100644 --- a/app.lua +++ b/app.lua @@ -428,9 +428,9 @@ function App.disable_tests() -- love.keyboard.isDown doesn't work on Android, so emulate it using -- keypressed and keyreleased events if name == 'keypressed' then - love.handlers[name] = function(key, scancode, isrepeat) + love.handlers[name] = function(key, scancode, is_repeat) Keys_down[key] = true - return App.keypressed(key, scancode, isrepeat) + return App.keypressed(key, scancode, is_repeat) end elseif name == 'keyreleased' then love.handlers[name] = function(key, scancode) diff --git a/keychord.lua b/keychord.lua index f1b6a59..dfde615 100644 --- a/keychord.lua +++ b/keychord.lua @@ -2,7 +2,7 @@ Modifiers = {'lctrl', 'rctrl', 'lalt', 'ralt', 'lshift', 'rshift', 'lgui', 'rgui'} -function App.keypressed(key, scancode, isrepeat) +function App.keypressed(key, scancode, is_repeat) if array.find(Modifiers, key) then -- do nothing when the modifier is pressed return |