jevent: add generic integer data option in events

This commit is contained in:
Lephenixnoir 2022-11-06 19:51:28 +01:00
parent cfeba2695c
commit 7c0e8257f7
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
2 changed files with 3 additions and 1 deletions

View File

@ -43,6 +43,8 @@ typedef struct {
union {
/* JWIDGET_KEY events */
key_event_t key;
/* Custom generic value */
int data;
};
} jevent;

View File

@ -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;