27 lines
395 B
C
27 lines
395 B
C
|
|
#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
|