win32_app
This commit is contained in:
@@ -159,12 +159,15 @@ void meta_app(ma_arena_t *arena) {
|
||||
} app_event_kind_t;
|
||||
|
||||
struct app_event_t {
|
||||
app_event_t *next;
|
||||
app_event_kind_t kind;
|
||||
|
||||
// data present only during events
|
||||
app_mouse_button_t mouse_button; // @mouse_down @mouse_up
|
||||
app_key_t key; // @key_down @key_up
|
||||
s8_t text; // @text
|
||||
|
||||
// @todo: test why xyz in js????????????
|
||||
v3f64_t mouse_wheel_delta; // @mouse_wheel
|
||||
|
||||
// always present data
|
||||
@@ -177,6 +180,12 @@ void meta_app(ma_arena_t *arena) {
|
||||
v2f64_t window_size;
|
||||
v2f64_t mouse_pos;
|
||||
};
|
||||
|
||||
struct app_event_list_t {
|
||||
app_event_t *first;
|
||||
app_event_t *last;
|
||||
i32 len;
|
||||
};
|
||||
));
|
||||
|
||||
sb8_serial_ast_to_code(h, decls);
|
||||
|
||||
Reference in New Issue
Block a user