diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2024-09-10 20:00:26 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2024-09-10 20:00:26 -0700 |
commit | 46cd42ecdc05d5fddb125ed4494b79ecccbfebba (patch) | |
tree | c0554bfdae95e7460748f68dc75f18159f952f4a | |
parent | e58d83b95075189faca41ecd6ad15d5bbe344bd4 (diff) | |
parent | 4af6f7b9e756e6b3add0ed61ea9fc0e0709d874a (diff) | |
download | view.love-46cd42ecdc05d5fddb125ed4494b79ecccbfebba.tar.gz |
Merge lines.love
-rw-r--r-- | edit.lua | 1 | ||||
-rw-r--r-- | main.lua | 1 | ||||
-rw-r--r-- | run.lua | 1 | ||||
-rw-r--r-- | source.lua | 1 | ||||
-rw-r--r-- | source_edit.lua | 1 |
5 files changed, 2 insertions, 3 deletions
diff --git a/edit.lua b/edit.lua index 99a71a8..52dc2ae 100644 --- a/edit.lua +++ b/edit.lua @@ -146,7 +146,6 @@ function edit.quit(State) end function edit.mouse_press(State, x,y, mouse_button) - love.keyboard.setTextInput(true) -- bring up keyboard on touch screen if State.search_term then return end State.mouse_down = mouse_button --? print_and_log(('edit.mouse_press: cursor at %d,%d'):format(State.cursor1.line, State.cursor1.pos)) diff --git a/main.lua b/main.lua index 582f05a..e7d35f4 100644 --- a/main.lua +++ b/main.lua @@ -114,7 +114,6 @@ function check_love_version_for_tests() end function App.initialize(arg) - love.keyboard.setTextInput(true) -- bring up keyboard on touch screen love.keyboard.setKeyRepeat(true) love.graphics.setBackgroundColor(1,1,1) diff --git a/run.lua b/run.lua index 307505d..9a7051d 100644 --- a/run.lua +++ b/run.lua @@ -168,6 +168,7 @@ end function run.mouse_press(x,y, mouse_button) Cursor_time = 0 -- ensure cursor is visible immediately after it moves + love.keyboard.setTextInput(true) -- bring up keyboard on touch screen return edit.mouse_press(Editor_state, x,y, mouse_button) end diff --git a/source.lua b/source.lua index c85517d..0644195 100644 --- a/source.lua +++ b/source.lua @@ -285,6 +285,7 @@ end function source.mouse_press(x,y, mouse_button) Cursor_time = 0 -- ensure cursor is visible immediately after it moves + love.keyboard.setTextInput(true) -- bring up keyboard on touch screen --? print('mouse click', x, y) --? print(Editor_state.left, Editor_state.right) --? print(Log_browser_state.left, Log_browser_state.right) diff --git a/source_edit.lua b/source_edit.lua index 2dca05d..53bd16a 100644 --- a/source_edit.lua +++ b/source_edit.lua @@ -234,7 +234,6 @@ function edit.quit(State) end function edit.mouse_press(State, x,y, mouse_button) - love.keyboard.setTextInput(true) -- bring up keyboard on touch screen if State.search_term then return end State.mouse_down = mouse_button --? print_and_log(('edit.mouse_press: cursor at %d,%d'):format(State.cursor1.line, State.cursor1.pos)) |