From 7c0e8257f73b681a1f43ffd7b7c4b05039063d67 Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Sun, 6 Nov 2022 19:51:28 +0100 Subject: [PATCH] jevent: add generic integer data option in events --- include/justui/jevent.h | 2 ++ include/justui/jfileselect.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/justui/jevent.h b/include/justui/jevent.h index 7e89822..9893915 100644 --- a/include/justui/jevent.h +++ b/include/justui/jevent.h @@ -43,6 +43,8 @@ typedef struct { union { /* JWIDGET_KEY events */ key_event_t key; + /* Custom generic value */ + int data; }; } jevent; diff --git a/include/justui/jfileselect.h b/include/justui/jfileselect.h index 9810e5f..a7da3d1 100644 --- a/include/justui/jfileselect.h +++ b/include/justui/jfileselect.h @@ -60,7 +60,7 @@ typedef struct { } jfileselect; -/* Type IDs */ +/* Event IDs */ extern uint16_t JFILESELECT_LOADED; extern uint16_t JFILESELECT_VALIDATED; extern uint16_t JFILESELECT_CANCELED;