commit c7f47e0
uint
·
2026-06-09 21:12:59 +0000 UTC
parent f726076
basic-window: use update clipboard to window ticks
2 files changed,
+6,
-2
M
TODO
+1,
-2
1@@ -1,7 +1,6 @@
2 Maus:
3-[-] Clipboard
4 [?] Cursor warping
5-[?] Text buffer
6+[?] Input text buffer
7 [?] Double buffering
8 [?] Clock, DT
9 [?] Custom cursor
+5,
-0
1@@ -1,4 +1,5 @@
2 #include <stdbool.h>
3+#include <stdint.h>
4 #include <stdlib.h>
5
6 #include "../../maus.h"
7@@ -77,6 +78,7 @@ int main(void)
8 // constant polling -- used in games
9 maus_fb_clear(mw, MAUS_COL_RGBA(255, 255, 255, 255));
10 MausColor red = { 255, 255, 0, 0 };
11+ unsigned long long ticks = 0;
12 for (;;) {
13 while (maus_event_poll(mw, &ev))
14 (void) handle_ev(mw, &ev);
15@@ -93,6 +95,9 @@ int main(void)
16 }
17 }
18
19+ char buf[512] = {0};
20+ snprintf(buf, 512, "maus' basic-window has been running for %lld ticks!", ticks++);
21+ maus_clipboard_set_text(mw, buf);
22 maus_present(mw);
23 }
24