summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
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;