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