diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-01-19 10:22:52 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-01-19 10:22:52 -0500 |
commit | 7ba80aaa38c95fdb84cd8fb51d51b5d897c5de95 (patch) | |
tree | 3bc8daa12db1b25301e775967f2b423386f11e9b /ted.h | |
parent | 8a4984e0e15fcfb0be6db242ab3f60325b80abd8 (diff) |
opening files by clicking on them
Diffstat (limited to 'ted.h')
-rw-r--r-- | ted.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |