27 lines
412 B
C
27 lines
412 B
C
|
|
#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) {
|
|
}
|
|
|