all repos — mgba @ d75042ea38fbffafdd53d2827421ab4470b47737

mGBA Game Boy Advance Emulator

src/gba/gba-input.h (view raw)

 1#ifndef GBA_INPUT_H
 2#define GBA_INPUT_H
 3
 4#include "gba.h"
 5
 6struct Configuration;
 7
 8struct GBAInputMap {
 9	struct GBAInputMapImpl* maps;
10	size_t numMaps;
11};
12
13void GBAInputMapInit(struct GBAInputMap*);
14void GBAInputMapDeinit(struct GBAInputMap*);
15
16enum GBAKey GBAInputMapKey(const struct GBAInputMap*, uint32_t type, int key);
17void GBAInputBindKey(struct GBAInputMap*, uint32_t type, int key, enum GBAKey input);
18
19void GBAInputMapLoad(struct GBAInputMap*, uint32_t type, const struct Configuration*);
20
21#endif