about summary refs log tree commit diff stats
path: root/log_browser.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2025-05-06 13:41:31 -0700
committerKartik K. Agaram <vc@akkartik.com>2025-05-06 14:14:55 -0700
commit11cd9123c15f9b9e76c359a8ac672c21f299811a (patch)
treee3a234e8df50ff96e1aa1f78eb612f3e1e6cc461 /log_browser.lua
parentbac6c8ae8710099014236029d1fab1f71394a4c5 (diff)
downloadlines.love-main.tar.gz
plumb through all supported args in LÖVE handlers HEAD main
I just noticed that the is_touch arg in mouse handlers is extremely
useful for arbitrating between events on a mobile device. And I'd
totally forgotten about its existence X-(
Diffstat (limited to 'log_browser.lua')
-rw-r--r--log_browser.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/log_browser.lua b/log_browser.lua
index 6e7e6db..fae9d6d 100644
--- a/log_browser.lua
+++ b/log_browser.lua
@@ -183,7 +183,7 @@ end
 function log_browser.quit(State)
 end
 
-function log_browser.mouse_press(State, x,y, mouse_button)
+function log_browser.mouse_press(State, x,y, mouse_button, is_touch, presses)
   local line_index = log_browser.line_index(State, x,y)
   if line_index == nil then
     -- below lower margin
@@ -249,7 +249,7 @@ function log_browser.line_index(State, mx,my)
   end
 end
 
-function log_browser.mouse_release(State, x,y, mouse_button)
+function log_browser.mouse_release(State, x,y, mouse_button, is_touch, presses)
 end
 
 function log_browser.mouse_wheel_move(State, dx,dy)
@@ -267,7 +267,7 @@ end
 function log_browser.text_input(State, t)
 end
 
-function log_browser.keychord_press(State, chord, key)
+function log_browser.keychord_press(State, chord, key, scancode, is_repeat)
   -- move
   if chord == 'up' then
     log_browser.up(State)