Fumofumotris/source/io/input.h

20 lines
321 B
C
Raw Normal View History

2024-03-25 05:34:59 +00:00
#pragma once
#include <iso646.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "ctrl.h"
#include "fumotris.h"
2024-04-10 20:05:56 +00:00
struct Input {
struct Controller ctrl;
2024-03-26 20:11:58 +00:00
2024-04-10 20:05:56 +00:00
pthread_t thread;
2024-04-16 22:14:53 +00:00
pthread_mutex_t mutex;
2024-04-10 20:05:56 +00:00
};
bool StartInput(struct Input *in);
bool JoinInput(struct Input *in);