about summary refs log tree commit diff stats
path: root/edit.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-12-23 19:26:05 -0800
committerKartik K. Agaram <vc@akkartik.com>2022-12-23 19:32:58 -0800
commite0448d7d7f1f6ec7ff88b222f59abe88503437e6 (patch)
tree6ffd24d059b9dc4ac0b333f835fae4c83249ef5d /edit.lua
parent2b3e09ca0fadcaaeac8d563aae1baeb7e7da3754 (diff)
downloadtext.love-e0448d7d7f1f6ec7ff88b222f59abe88503437e6.tar.gz
consistent names in a few more places
Diffstat (limited to 'edit.lua')
-rw-r--r--edit.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/edit.lua b/edit.lua
index ed5a79f..4d36780 100644
--- a/edit.lua
+++ b/edit.lua
@@ -195,7 +195,7 @@ function edit.quit(State)
   end
 end
 
-function edit.mouse_pressed(State, x,y, mouse_button)
+function edit.mouse_press(State, x,y, mouse_button)
   if State.search_term then return end
 --?   print('press', State.selection1.line, State.selection1.pos)
   if mouse_press_consumed_by_any_button_handler(State, x,y, mouse_button) then
@@ -231,7 +231,7 @@ function edit.mouse_pressed(State, x,y, mouse_button)
         State.lines.current_drawing_index = line_index
         State.lines.current_drawing = line
         Drawing.before = snapshot(State, line_index)
-        Drawing.mouse_pressed(State, line_index, x,y, mouse_button)
+        Drawing.mouse_press(State, line_index, x,y, mouse_button)
         break
       end
     end
@@ -508,7 +508,7 @@ end
 
 function edit.run_after_mouse_click(State, x,y, mouse_button)
   App.fake_mouse_press(x,y, mouse_button)
-  edit.mouse_pressed(State, x,y, mouse_button)
+  edit.mouse_press(State, x,y, mouse_button)
   App.fake_mouse_release(x,y, mouse_button)
   edit.mouse_release(State, x,y, mouse_button)
   App.screen.contents = {}
@@ -518,7 +518,7 @@ end
 
 function edit.run_after_mouse_press(State, x,y, mouse_button)
   App.fake_mouse_press(x,y, mouse_button)
-  edit.mouse_pressed(State, x,y, mouse_button)
+  edit.mouse_press(State, x,y, mouse_button)
   App.screen.contents = {}
   edit.update(State, 0)
   edit.draw(State)