-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathlibretro_shared.h
More file actions
101 lines (74 loc) · 1.88 KB
/
libretro_shared.h
File metadata and controls
101 lines (74 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
#ifndef _LIBRETRO_SHARED_H
#define _LIBRETRO_SHARED_H
#ifndef MAX_BUTTONS
#define MAX_BUTTONS 16
#endif
#if !defined(HAVE_GL) && !defined(HAVE_RGB32)
#ifndef M16B
#define M16B
#endif
#endif
#ifndef M16B
#define PIXEL_TYPE UINT32
#else
#define PIXEL_TYPE UINT16
#endif
extern int NEWGAME_FROM_OSD;
extern int RLOOP;
extern char g_rom_dir[1024];
extern const char *retro_save_directory;
extern const char *retro_system_directory;
extern const char *retro_content_directory;
extern int retro_pause;
extern bool experimental_cmdline;
extern bool hide_gameinfo;
extern int mouse_mode;
extern bool cheats_enable;
extern bool alternate_renderer;
extern bool boot_to_osd_enable;
extern bool boot_to_bios_enable;
extern bool softlist_enable;
extern bool softlist_auto;
extern bool write_config_enable;
extern bool read_config_enable;
extern bool hide_nagscreen;
extern bool hide_warnings;
extern bool throttle_enable;
extern bool auto_save_enable;
extern bool game_specific_saves_enable;
extern int mouseLX[4];
extern int mouseLY[4];
extern int mouseBUT[4];
extern int lightgunLX[4];
extern int lightgunLY[4];
extern int lightgunBUT[4];
extern UINT16 retrokbd_state[RETROK_LAST];
extern char mediaType[10];
extern bool nobuffer_enable;
extern int mame_reset;
extern int max_width;
extern int max_height;
extern int fb_width;
extern int fb_height;
extern int fb_pitch;
extern float retro_aspect;
extern float retro_fps;
extern float view_aspect;
static const char core[] = "mame2016";
/* libretro callbacks */
extern retro_log_printf_t log_cb;
extern retro_input_state_t input_state_cb;
void retro_frame_draw_enable(bool enable);
void *retro_get_fb_ptr(void);
void process_keyboard_state(void);
void process_joypad_state(void);
void process_mouse_state(void);
void process_lightgun_state(void);
#ifdef __cplusplus
extern "C" {
#endif
int mmain(int argc, const char *argv);
#ifdef __cplusplus
}
#endif
#endif