summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-25 18:27:07 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-25 18:27:07 -0500
commit2baf965c7db4a3640cd120e050c61aa7de67448b (patch)
tree4ea6d87d6157b3d25eba24aa8805a10219c44a2f /main.c
parent3ff107c7ca438749a8425feef9eefb67c7a8abfc (diff)
node resizing working
Diffstat (limited to 'main.c')
-rw-r--r--main.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/main.c b/main.c
index 724c2e8..52e5561 100644
--- a/main.c
+++ b/main.c
@@ -1,5 +1,4 @@
// @TODO:
-// - resize split (i.e. change split_pos)
// - move tabs between nodes
// - Windows installation
@@ -525,7 +524,11 @@ int main(int argc, char **argv) {
} break;
}
}
-
+ {
+ int mx = 0, my = 0;
+ ted->mouse_state = SDL_GetMouseState(&mx, &my);
+ ted->mouse_pos = V2((float)mx, (float)my);
+ }
// default to arrow cursor
ted->cursor = ted->cursor_arrow;
if (!(ted->mouse_state & SDL_BUTTON_LMASK)) {