about summary refs log tree commit diff stats
path: root/run.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-12-23 17:16:19 -0800
committerKartik K. Agaram <vc@akkartik.com>2022-12-23 18:52:28 -0800
commit2b3e09ca0fadcaaeac8d563aae1baeb7e7da3754 (patch)
treefa1d6ef4e18c53c9d4400917ade89e063a30a8c3 /run.lua
parente2e3aea2b1b9504bf849d1ab3ca9eb16544b651d (diff)
downloadlines.love-2b3e09ca0fadcaaeac8d563aae1baeb7e7da3754.tar.gz
make love event names consistent
I want the words to be easy to read, and to use a consistent tense.
update and focus seem more timeless; let's make everything like those.
Diffstat (limited to 'run.lua')
-rw-r--r--run.lua18
1 files changed, 9 insertions, 9 deletions
diff --git a/run.lua b/run.lua
index 3a17225..0bbcdc7 100644
--- a/run.lua
+++ b/run.lua
@@ -105,7 +105,7 @@ function run.resize(w, h)
   Text.tweak_screen_top_and_cursor(Editor_state, Editor_state.left, Editor_state.right)
 end
 
-function run.filedropped(file)
+function run.file_drop(file)
   -- first make sure to save edits on any existing file
   if Editor_state.next_save then
     save_to_disk(Editor_state)
@@ -159,24 +159,24 @@ function run.mouse_pressed(x,y, mouse_button)
   return edit.mouse_pressed(Editor_state, x,y, mouse_button)
 end
 
-function run.mouse_released(x,y, mouse_button)
+function run.mouse_release(x,y, mouse_button)
   Cursor_time = 0  -- ensure cursor is visible immediately after it moves
-  return edit.mouse_released(Editor_state, x,y, mouse_button)
+  return edit.mouse_release(Editor_state, x,y, mouse_button)
 end
 
-function run.textinput(t)
+function run.text_input(t)
   Cursor_time = 0  -- ensure cursor is visible immediately after it moves
-  return edit.textinput(Editor_state, t)
+  return edit.text_input(Editor_state, t)
 end
 
-function run.keychord_pressed(chord, key)
+function run.keychord_press(chord, key)
   Cursor_time = 0  -- ensure cursor is visible immediately after it moves
-  return edit.keychord_pressed(Editor_state, chord, key)
+  return edit.keychord_press(Editor_state, chord, key)
 end
 
-function run.key_released(key, scancode)
+function run.key_release(key, scancode)
   Cursor_time = 0  -- ensure cursor is visible immediately after it moves
-  return edit.key_released(Editor_state, key, scancode)
+  return edit.key_release(Editor_state, key, scancode)
 end
 
 -- use this sparingly