Add device event receiver

Create a separate component to handle device events, managed by the
controller.
This commit is contained in:
Romain Vimont
2019-05-30 00:25:37 +02:00
parent f9d2d99166
commit 6112095e75
5 changed files with 158 additions and 0 deletions

View File

@@ -8,6 +8,7 @@
#include "cbuf.h"
#include "control_event.h"
#include "net.h"
#include "receiver.h"
struct control_event_queue CBUF(struct control_event, 64);
@@ -18,6 +19,7 @@ struct controller {
SDL_cond *event_cond;
bool stopped;
struct control_event_queue queue;
struct receiver receiver;
};
bool