fix Event structure alignment between C and D
This commit is contained in:
parent
acb25132e4
commit
a30b4b7ff8
@ -8,7 +8,7 @@ import jtk.timer;
|
||||
|
||||
struct Event
|
||||
{
|
||||
enum Type : ubyte
|
||||
enum : uint
|
||||
{
|
||||
WINDOW_CLOSE,
|
||||
WINDOW_EXPOSE,
|
||||
@ -41,7 +41,8 @@ struct Event
|
||||
uint height;
|
||||
};
|
||||
|
||||
Type type;
|
||||
uint type;
|
||||
uint _pad;
|
||||
union
|
||||
{
|
||||
KeyEvent key_event;
|
||||
|
@ -339,7 +339,8 @@ typedef struct {
|
||||
} jtk_window_resize_event_t;
|
||||
|
||||
typedef struct {
|
||||
uint8_t type;
|
||||
uint32_t type;
|
||||
uint32_t _pad;
|
||||
union {
|
||||
jtk_key_event_t key_event;
|
||||
jtk_button_event_t button_event;
|
||||
|
Loading…
x
Reference in New Issue
Block a user