mirror of
https://github.com/0ldsk00l/nestopia.git
synced 2025-04-02 10:31:51 -04:00
27 lines
456 B
C
27 lines
456 B
C
/*
|
|
NEStopia / Linux
|
|
David B. Robins (nestopia@davidrobins.net)
|
|
|
|
kentry.h - key code mapping
|
|
*/
|
|
|
|
#ifndef KENTRY_H_
|
|
#define KENTRY_H_
|
|
|
|
#include "SDL.h"
|
|
|
|
typedef struct
|
|
{
|
|
char *string;
|
|
int code;
|
|
} KEntry;
|
|
|
|
extern const KEntry keycodes[];
|
|
extern const KEntry metacodes[];
|
|
extern const KEntry controlcodes[];
|
|
|
|
int kentry_find_str(const KEntry *kentry, const char *str);
|
|
const char *kentry_find_code(const KEntry *kentry, int code);
|
|
|
|
#endif // KENTRY_H_
|
|
|