summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-01-19 10:22:52 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-01-19 10:22:52 -0500
commit7ba80aaa38c95fdb84cd8fb51d51b5d897c5de95 (patch)
tree3bc8daa12db1b25301e775967f2b423386f11e9b /ted.h
parent8a4984e0e15fcfb0be6db242ab3f60325b80abd8 (diff)
opening files by clicking on them
Diffstat (limited to 'ted.h')
-rw-r--r--ted.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ted.h b/ted.h
index 36602cf..af1a2ae 100644
--- a/ted.h
+++ b/ted.h
@@ -82,6 +82,9 @@ typedef struct Ted {
TextBuffer *prev_active_buffer;
Settings settings;
float window_width, window_height;
+ v2 mouse_pos;
+ u8 nmouse_clicks[4]; // nmouse_clicks[i] = length of mouse_clicks[i]
+ v2 mouse_clicks[4][32]; // mouse_clicks[SDL_BUTTON_RIGHT], for example, is all the right mouse-clicks that have happened this frame
Menu menu;
TextBuffer line_buffer; // general-purpose line buffer for inputs -- used for menus
TextBuffer main_buffer;