summaryrefslogtreecommitdiff
path: root/core/event_queue.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/event_queue.h')
-rw-r--r--core/event_queue.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/event_queue.h b/core/event_queue.h
index af0a4df2b8..99e853fd28 100644
--- a/core/event_queue.h
+++ b/core/event_queue.h
@@ -36,18 +36,18 @@
class EventQueue {
enum {
-
+
DEFAULT_EVENT_QUEUE_SIZE_KB=256
};
struct Event {
-
+
uint32_t instance_ID;
StringName method;
int args;
};
-
-
+
+
uint8_t *event_buffer;
uint32_t buffer_end;
uint32_t buffer_max_used;
@@ -57,7 +57,7 @@ public:
Error push_call(uint32_t p_instance_ID, const StringName& p_method, VARIANT_ARG_LIST);
void flush_events();
-
+
EventQueue(uint32_t p_buffer_size=DEFAULT_EVENT_QUEUE_SIZE_KB*1024);
~EventQueue();