about summary refs log tree commit diff stats
path: root/main.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-05-20 05:41:25 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-05-20 05:41:25 -0700
commit7fd3c92efed31a59e8e4c523f260313df348d244 (patch)
tree0645f48d787ce697434ad6680968f354e7ef8960 /main.lua
parent5f2ef2faafa19e095ec5d447d0e24f98c473d31a (diff)
downloadtext.love-7fd3c92efed31a59e8e4c523f260313df348d244.tar.gz
start remembering where the cursor is drawn in px
We'll start using this in cursor up/down motions.
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.lua b/main.lua
index 19f9b21..870863d 100644
--- a/main.lua
+++ b/main.lua
@@ -44,6 +44,8 @@ Cursor_pos = 1  -- in Unicode codepoints, from 1 to utf8.len(line) + 1
 
 Screen_width, Screen_height, Screen_flags = 0, 0, nil
 
+Cursor_x, Cursor_y = 0, 0  -- in pixels
+
 Current_drawing_mode = 'line'
 Previous_drawing_mode = nil