From 11cd9123c15f9b9e76c359a8ac672c21f299811a Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 6 May 2025 13:41:31 -0700 Subject: plumb through all supported args in LÖVE handlers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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-( --- source_text.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source_text.lua') diff --git a/source_text.lua b/source_text.lua index 284ed00..c281acf 100644 --- a/source_text.lua +++ b/source_text.lua @@ -223,7 +223,7 @@ function Text.insert_at_cursor(State, t) end -- Don't handle any keys here that would trigger text_input above. -function Text.keychord_press(State, chord) +function Text.keychord_press(State, chord, key, scancode, is_repeat) --? print('chord', chord, State.selection1.line, State.selection1.pos) --== shortcuts that mutate text if chord == 'return' then -- cgit 1.4.1-2-gfad0