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
No known key found for this signature in database
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;