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;
|
|
|
|
pthread_mutex_t access_mutex;
|
|
|
|
};
|
|
|
|
|
|
|
|
bool StartInput(struct Input *in);
|
|
|
|
|
|
|
|
bool JoinInput(struct Input *in);
|