From e2830e3d683fa29cb9545eb0c33bb8731615ed2f Mon Sep 17 00:00:00 2001 From: oxmox Date: Thu, 23 Feb 2023 21:58:08 +0100 Subject: [PATCH] be lazy, always transmit dooms MaxEvents (64) input events --- src/dp_common.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dp_common.h b/src/dp_common.h index e79f925..a33c7fb 100644 --- a/src/dp_common.h +++ b/src/dp_common.h @@ -21,6 +21,7 @@ typedef u16 dmt_t; // for DP_MessageType values #define DoomBytesPerPixel 4 #define DoomFramePitch (DoomScreenWidth * DoomBytesPerPixel) #define DoomFrameSize (DoomScreenWidth * DoomScreenHeight * DoomBytesPerPixel) +#define DoomMaxEvents 64 typedef enum DP_MessageType { @@ -104,7 +105,7 @@ typedef struct __attribute__((packed, aligned(4))) { MessageBase head; u8 eventCount; - dp_doom_event_t events[1]; + dp_doom_event_t events[DoomMaxEvents]; } MsgInputs; void dp_errno_fatal(const char *const msg);