summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Stensgård <mastensg@mastensg.net>2025-07-11 00:22:11 +0200
committerMartin Stensgård <mastensg@mastensg.net>2025-07-11 00:22:11 +0200
commit2111c4816ba9577a743e42139b18b5f2d7cef881 (patch)
tree15ddf151f916c98b3b999becd78e310200dce3d5
parent74548f21a058128ad916fb988f2cfaf07b04aacf (diff)
opplysning: press r to refresh
-rw-r--r--opplysning.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/opplysning.c b/opplysning.c
index c2998cf..7764ee5 100644
--- a/opplysning.c
+++ b/opplysning.c
@@ -256,6 +256,10 @@ main(void)
ray_init();
while (!WindowShouldClose()) {
+ if (IsKeyPressed(KEY_R)) {
+ load_events(&ne_google, ev_google, "var/google.db");
+ load_events(&ne_meetup, ev_meetup, "var/meetup.db");
+ }
BeginDrawing();
ClearBackground(R.bg);
draw_time(SCREEN_W / 2 - 100, 0);