Initial commit
This commit is contained in:
26
src/snes/input.c
Normal file
26
src/snes/input.c
Normal 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) {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user