Initial commit

This commit is contained in:
snesrev
2023-03-05 07:03:54 +01:00
committed by Snesrev
commit 09c1bdd874
100 changed files with 142957 additions and 0 deletions

26
src/snes/input.h Normal file
View File

@@ -0,0 +1,26 @@
#ifndef INPUT_H
#define INPUT_H
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <stdbool.h>
typedef struct Input Input;
#include "snes.h"
struct Input {
Snes* snes;
uint8_t type;
// for controller
uint16_t currentState; // actual state
};
Input* input_init(Snes* snes);
void input_free(Input* input);
void input_reset(Input* input);
#endif