bf.love/0017-on.mouse_press

16 lines
393 B
Plaintext

on.mouse_press = function(x,y, mouse_button)
if x < In.editor.right then
Cursor = In
edit.mouse_press(Cursor.editor, x,y, mouse_button)
elseif x < Code.editor.right then
if y < App.screen.height/2 then
Cursor = Code
edit.mouse_press(Cursor.editor, x,y, mouse_button)
else
Cursor = Data
end
else
Cursor = Out
edit.mouse_press(Cursor.editor, x,y, mouse_button)
end
end