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.c Normal file
View File

@@ -0,0 +1,26 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <stdbool.h>
#include "input.h"
#include "snes.h"
Input* input_init(Snes* snes) {
Input* input = malloc(sizeof(Input));
input->snes = snes;
// TODO: handle (where?)
input->type = 1;
input->currentState = 0;
return input;
}
void input_free(Input* input) {
free(input);
}
void input_reset(Input* input) {
}