about summary refs log tree commit diff stats
path: root/reference.md
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2023-12-16 23:37:32 -0800
committerKartik K. Agaram <vc@akkartik.com>2023-12-16 23:41:10 -0800
commitc29be0ffce7132d607077b3e7dda342fc3c4c461 (patch)
tree321c7af322ae82e16c76d015fb0065f60cec0988 /reference.md
parent961f29613197bace7925d14f492114fea7b81214 (diff)
downloadtext.love-c29be0ffce7132d607077b3e7dda342fc3c4c461.tar.gz
streamline button.lua
Diffstat (limited to 'reference.md')
-rw-r--r--reference.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/reference.md b/reference.md
index 916c8f4..51c547b 100644
--- a/reference.md
+++ b/reference.md
@@ -294,7 +294,7 @@ The following facilities help set these things up:
   everything about a button in one place. Create as many buttons as you like
   within a single shared `state`.
 
-* `mouse_press_consumed_by_any_button_handler(state, x,y, mouse_button)`
+* `mouse_press_consumed_by_any_button(state, x,y, mouse_button)`
 
   Call this either directly or indirectly from `App.mousepressed`. It will
   pass on a click to any button registered in `state`. It's also helpful to
@@ -302,7 +302,7 @@ The following facilities help set these things up:
   following boilerplate early in `mousepressed`:
 
     ```
-    if mouse_press_consumed_by_any_button_handler(state, x,y, mouse_button) then
+    if mouse_press_consumed_by_any_button(state, x,y, mouse_button) then
       return
     end
     ```