~akkartik/template-live-editor

46cd42ecdc05d5fddb125ed4494b79ecccbfebba — Kartik K. Agaram 2 months ago e58d83b + 4af6f7b
Merge lines.love
5 files changed, 2 insertions(+), 3 deletions(-)

M edit.lua
M main.lua
M run.lua
M source.lua
M source_edit.lua
M edit.lua => edit.lua +0 -1
@@ 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))

M main.lua => main.lua +0 -1
@@ 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)

M run.lua => run.lua +1 -0
@@ 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


M source.lua => source.lua +1 -0
@@ 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)

M source_edit.lua => source_edit.lua +0 -1
@@ 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))