ScummVM API documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
libretro-core.h
1 /* Copyright (C) 2023 Giovanni Cascione <ing.cascione@gmail.com>
2  *
3  * This program is free software: you can redistribute it and/or modify
4  * it under the terms of the GNU General Public License as published by
5  * the Free Software Foundation, either version 3 of the License, or
6  * (at your option) any later version.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  */
17 
18 #ifndef LIBRETRO_CORE_H
19 #define LIBRETRO_CORE_H
20 
21 #include <libretro.h>
22 
23 extern retro_log_printf_t retro_log_cb;
24 extern retro_input_state_t retro_input_cb;
25 
26 bool retro_get_input_bitmask_supported(void);
27 void retro_osd_notification(const char *msg);
28 int retro_get_input_device(void);
29 const char *retro_get_core_dir(void);
30 const char *retro_get_system_dir(void);
31 const char *retro_get_save_dir(void);
32 const char *retro_get_playlist_dir(void);
33 
34 float retro_setting_get_frame_rate(void);
35 uint16 retro_setting_get_sample_rate(void);
36 uint16 retro_setting_get_audio_samples_buffer_size(void);
37 int retro_setting_get_analog_deadzone(void);
38 bool retro_setting_get_analog_response_is_quadratic(void);
39 float retro_setting_get_mouse_speed(void);
40 int retro_setting_get_mouse_fine_control_speed_reduction(void);
41 bool retro_setting_get_gamepad_cursor_only(void);
42 float retro_setting_get_gamepad_cursor_speed(void);
43 float retro_setting_get_gamepad_acceleration_time(void);
44 int retro_setting_get_gui_res_w(void);
45 int retro_setting_get_gui_res_h(void);
46 
47 void retro_set_size(unsigned width, unsigned height);
48 
49 uint8 retro_get_video_hw_mode(void);
50 #ifdef USE_OPENGL
51 uintptr_t retro_get_hw_fb(void);
52 void *retro_get_proc_address(const char *name);
53 #endif
54 #endif // LIBRETRO_CORE_H