RetroArch
Classes | Macros | Typedefs | Enumerations | Functions
libretro.h File Reference
#include <stdint.h>
#include <stddef.h>
#include <limits.h>
#include <stdbool.h>
Include dependency graph for libretro.h:

Go to the source code of this file.

Classes

struct  retro_vfs_interface
 
struct  retro_vfs_interface_info
 
struct  retro_hw_render_interface
 
struct  retro_led_interface
 
struct  retro_midi_interface
 
struct  retro_hw_render_context_negotiation_interface
 
struct  retro_memory_descriptor
 
struct  retro_memory_map
 
struct  retro_controller_description
 
struct  retro_controller_info
 
struct  retro_subsystem_memory_info
 
struct  retro_subsystem_rom_info
 
struct  retro_subsystem_info
 
struct  retro_get_proc_address_interface
 
struct  retro_log_callback
 
struct  retro_perf_counter
 
struct  retro_perf_callback
 
struct  retro_sensor_interface
 
struct  retro_camera_callback
 
struct  retro_location_callback
 
struct  retro_rumble_interface
 
struct  retro_audio_callback
 
struct  retro_frame_time_callback
 
struct  retro_hw_render_callback
 
struct  retro_keyboard_callback
 
struct  retro_disk_control_callback
 
struct  retro_message
 
struct  retro_input_descriptor
 
struct  retro_system_info
 
struct  retro_game_geometry
 
struct  retro_system_timing
 
struct  retro_system_av_info
 
struct  retro_variable
 
struct  retro_game_info
 
struct  retro_framebuffer
 

Macros

#define RETRO_CALLCONV   /* all other platforms only have one calling convention each */
 
#define RETRO_API   RETRO_CALLCONV
 
#define RETRO_API_VERSION   1
 
#define RETRO_DEVICE_TYPE_SHIFT   8
 
#define RETRO_DEVICE_MASK   ((1 << RETRO_DEVICE_TYPE_SHIFT) - 1)
 
#define RETRO_DEVICE_SUBCLASS(base, id)   (((id + 1) << RETRO_DEVICE_TYPE_SHIFT) | base)
 
#define RETRO_DEVICE_NONE   0
 
#define RETRO_DEVICE_JOYPAD   1
 
#define RETRO_DEVICE_MOUSE   2
 
#define RETRO_DEVICE_KEYBOARD   3
 
#define RETRO_DEVICE_LIGHTGUN   4
 
#define RETRO_DEVICE_ANALOG   5
 
#define RETRO_DEVICE_POINTER   6
 
#define RETRO_DEVICE_ID_JOYPAD_B   0
 
#define RETRO_DEVICE_ID_JOYPAD_Y   1
 
#define RETRO_DEVICE_ID_JOYPAD_SELECT   2
 
#define RETRO_DEVICE_ID_JOYPAD_START   3
 
#define RETRO_DEVICE_ID_JOYPAD_UP   4
 
#define RETRO_DEVICE_ID_JOYPAD_DOWN   5
 
#define RETRO_DEVICE_ID_JOYPAD_LEFT   6
 
#define RETRO_DEVICE_ID_JOYPAD_RIGHT   7
 
#define RETRO_DEVICE_ID_JOYPAD_A   8
 
#define RETRO_DEVICE_ID_JOYPAD_X   9
 
#define RETRO_DEVICE_ID_JOYPAD_L   10
 
#define RETRO_DEVICE_ID_JOYPAD_R   11
 
#define RETRO_DEVICE_ID_JOYPAD_L2   12
 
#define RETRO_DEVICE_ID_JOYPAD_R2   13
 
#define RETRO_DEVICE_ID_JOYPAD_L3   14
 
#define RETRO_DEVICE_ID_JOYPAD_R3   15
 
#define RETRO_DEVICE_INDEX_ANALOG_LEFT   0
 
#define RETRO_DEVICE_INDEX_ANALOG_RIGHT   1
 
#define RETRO_DEVICE_INDEX_ANALOG_BUTTON   2
 
#define RETRO_DEVICE_ID_ANALOG_X   0
 
#define RETRO_DEVICE_ID_ANALOG_Y   1
 
#define RETRO_DEVICE_ID_MOUSE_X   0
 
#define RETRO_DEVICE_ID_MOUSE_Y   1
 
#define RETRO_DEVICE_ID_MOUSE_LEFT   2
 
#define RETRO_DEVICE_ID_MOUSE_RIGHT   3
 
#define RETRO_DEVICE_ID_MOUSE_WHEELUP   4
 
#define RETRO_DEVICE_ID_MOUSE_WHEELDOWN   5
 
#define RETRO_DEVICE_ID_MOUSE_MIDDLE   6
 
#define RETRO_DEVICE_ID_MOUSE_HORIZ_WHEELUP   7
 
#define RETRO_DEVICE_ID_MOUSE_HORIZ_WHEELDOWN   8
 
#define RETRO_DEVICE_ID_MOUSE_BUTTON_4   9
 
#define RETRO_DEVICE_ID_MOUSE_BUTTON_5   10
 
#define RETRO_DEVICE_ID_LIGHTGUN_SCREEN_X   13 /*Absolute Position*/
 
#define RETRO_DEVICE_ID_LIGHTGUN_SCREEN_Y   14 /*Absolute*/
 
#define RETRO_DEVICE_ID_LIGHTGUN_IS_OFFSCREEN   15 /*Status Check*/
 
#define RETRO_DEVICE_ID_LIGHTGUN_TRIGGER   2
 
#define RETRO_DEVICE_ID_LIGHTGUN_RELOAD   16 /*Forced off-screen shot*/
 
#define RETRO_DEVICE_ID_LIGHTGUN_AUX_A   3
 
#define RETRO_DEVICE_ID_LIGHTGUN_AUX_B   4
 
#define RETRO_DEVICE_ID_LIGHTGUN_START   6
 
#define RETRO_DEVICE_ID_LIGHTGUN_SELECT   7
 
#define RETRO_DEVICE_ID_LIGHTGUN_AUX_C   8
 
#define RETRO_DEVICE_ID_LIGHTGUN_DPAD_UP   9
 
#define RETRO_DEVICE_ID_LIGHTGUN_DPAD_DOWN   10
 
#define RETRO_DEVICE_ID_LIGHTGUN_DPAD_LEFT   11
 
#define RETRO_DEVICE_ID_LIGHTGUN_DPAD_RIGHT   12
 
#define RETRO_DEVICE_ID_LIGHTGUN_X   0 /*Relative Position*/
 
#define RETRO_DEVICE_ID_LIGHTGUN_Y   1 /*Relative*/
 
#define RETRO_DEVICE_ID_LIGHTGUN_CURSOR   3 /*Use Aux:A*/
 
#define RETRO_DEVICE_ID_LIGHTGUN_TURBO   4 /*Use Aux:B*/
 
#define RETRO_DEVICE_ID_LIGHTGUN_PAUSE   5 /*Use Start*/
 
#define RETRO_DEVICE_ID_POINTER_X   0
 
#define RETRO_DEVICE_ID_POINTER_Y   1
 
#define RETRO_DEVICE_ID_POINTER_PRESSED   2
 
#define RETRO_REGION_NTSC   0
 
#define RETRO_REGION_PAL   1
 
#define RETRO_MEMORY_MASK   0xff
 
#define RETRO_MEMORY_SAVE_RAM   0
 
#define RETRO_MEMORY_RTC   1
 
#define RETRO_MEMORY_SYSTEM_RAM   2
 
#define RETRO_MEMORY_VIDEO_RAM   3
 
#define RETRO_ENVIRONMENT_EXPERIMENTAL   0x10000
 
#define RETRO_ENVIRONMENT_PRIVATE   0x20000
 
#define RETRO_ENVIRONMENT_SET_ROTATION
 
#define RETRO_ENVIRONMENT_GET_OVERSCAN
 
#define RETRO_ENVIRONMENT_GET_CAN_DUPE
 
#define RETRO_ENVIRONMENT_SET_MESSAGE
 
#define RETRO_ENVIRONMENT_SHUTDOWN
 
#define RETRO_ENVIRONMENT_SET_PERFORMANCE_LEVEL   8
 
#define RETRO_ENVIRONMENT_GET_SYSTEM_DIRECTORY   9
 
#define RETRO_ENVIRONMENT_SET_PIXEL_FORMAT   10
 
#define RETRO_ENVIRONMENT_SET_INPUT_DESCRIPTORS   11
 
#define RETRO_ENVIRONMENT_SET_KEYBOARD_CALLBACK   12
 
#define RETRO_ENVIRONMENT_SET_DISK_CONTROL_INTERFACE   13
 
#define RETRO_ENVIRONMENT_SET_HW_RENDER   14
 
#define RETRO_ENVIRONMENT_GET_VARIABLE   15
 
#define RETRO_ENVIRONMENT_SET_VARIABLES   16
 
#define RETRO_ENVIRONMENT_GET_VARIABLE_UPDATE   17
 
#define RETRO_ENVIRONMENT_SET_SUPPORT_NO_GAME   18
 
#define RETRO_ENVIRONMENT_GET_LIBRETRO_PATH   19
 
#define RETRO_ENVIRONMENT_SET_FRAME_TIME_CALLBACK   21
 
#define RETRO_ENVIRONMENT_SET_AUDIO_CALLBACK   22
 
#define RETRO_ENVIRONMENT_GET_RUMBLE_INTERFACE   23
 
#define RETRO_ENVIRONMENT_GET_INPUT_DEVICE_CAPABILITIES   24
 
#define RETRO_ENVIRONMENT_GET_SENSOR_INTERFACE   (25 | RETRO_ENVIRONMENT_EXPERIMENTAL)
 
#define RETRO_ENVIRONMENT_GET_CAMERA_INTERFACE   (26 | RETRO_ENVIRONMENT_EXPERIMENTAL)
 
#define RETRO_ENVIRONMENT_GET_LOG_INTERFACE   27
 
#define RETRO_ENVIRONMENT_GET_PERF_INTERFACE   28
 
#define RETRO_ENVIRONMENT_GET_LOCATION_INTERFACE   29
 
#define RETRO_ENVIRONMENT_GET_CONTENT_DIRECTORY   30 /* Old name, kept for compatibility. */
 
#define RETRO_ENVIRONMENT_GET_CORE_ASSETS_DIRECTORY   30
 
#define RETRO_ENVIRONMENT_GET_SAVE_DIRECTORY   31
 
#define RETRO_ENVIRONMENT_SET_SYSTEM_AV_INFO   32
 
#define RETRO_ENVIRONMENT_SET_PROC_ADDRESS_CALLBACK   33
 
#define RETRO_ENVIRONMENT_SET_SUBSYSTEM_INFO   34
 
#define RETRO_ENVIRONMENT_SET_CONTROLLER_INFO   35
 
#define RETRO_ENVIRONMENT_SET_MEMORY_MAPS   (36 | RETRO_ENVIRONMENT_EXPERIMENTAL)
 
#define RETRO_ENVIRONMENT_SET_GEOMETRY   37
 
#define RETRO_ENVIRONMENT_GET_USERNAME   38
 
#define RETRO_ENVIRONMENT_GET_LANGUAGE   39
 
#define RETRO_ENVIRONMENT_GET_CURRENT_SOFTWARE_FRAMEBUFFER   (40 | RETRO_ENVIRONMENT_EXPERIMENTAL)
 
#define RETRO_ENVIRONMENT_GET_HW_RENDER_INTERFACE   (41 | RETRO_ENVIRONMENT_EXPERIMENTAL)
 
#define RETRO_ENVIRONMENT_SET_SUPPORT_ACHIEVEMENTS   (42 | RETRO_ENVIRONMENT_EXPERIMENTAL)
 
#define RETRO_ENVIRONMENT_SET_HW_RENDER_CONTEXT_NEGOTIATION_INTERFACE   (43 | RETRO_ENVIRONMENT_EXPERIMENTAL)
 
#define RETRO_ENVIRONMENT_SET_SERIALIZATION_QUIRKS   44
 
#define RETRO_ENVIRONMENT_SET_HW_SHARED_CONTEXT   (44 | RETRO_ENVIRONMENT_EXPERIMENTAL)
 
#define RETRO_ENVIRONMENT_GET_VFS_INTERFACE   (45 | RETRO_ENVIRONMENT_EXPERIMENTAL)
 
#define RETRO_ENVIRONMENT_GET_LED_INTERFACE   (46 | RETRO_ENVIRONMENT_EXPERIMENTAL)
 
#define RETRO_ENVIRONMENT_GET_AUDIO_VIDEO_ENABLE   (47 | RETRO_ENVIRONMENT_EXPERIMENTAL)
 
#define RETRO_ENVIRONMENT_GET_MIDI_INTERFACE   (48 | RETRO_ENVIRONMENT_EXPERIMENTAL)
 
#define RETRO_ENVIRONMENT_GET_FASTFORWARDING   (49 | RETRO_ENVIRONMENT_EXPERIMENTAL)
 
#define RETRO_VFS_FILE_ACCESS_READ   (1 << 0) /* Read only mode */
 
#define RETRO_VFS_FILE_ACCESS_WRITE   (1 << 1) /* Write only mode, discard contents and overwrites existing file unless RETRO_VFS_FILE_ACCESS_UPDATE is also specified */
 
#define RETRO_VFS_FILE_ACCESS_READ_WRITE   (RETRO_VFS_FILE_ACCESS_READ | RETRO_VFS_FILE_ACCESS_WRITE) /* Read-write mode, discard contents and overwrites existing file unless RETRO_VFS_FILE_ACCESS_UPDATE is also specified*/
 
#define RETRO_VFS_FILE_ACCESS_UPDATE_EXISTING   (1 << 2) /* Prevents discarding content of existing files opened for writing */
 
#define RETRO_VFS_FILE_ACCESS_HINT_NONE   (0)
 
#define RETRO_VFS_FILE_ACCESS_HINT_FREQUENT_ACCESS   (1 << 0)
 
#define RETRO_VFS_SEEK_POSITION_START   0
 
#define RETRO_VFS_SEEK_POSITION_CURRENT   1
 
#define RETRO_VFS_SEEK_POSITION_END   2
 
#define RETRO_SERIALIZATION_QUIRK_INCOMPLETE   (1 << 0)
 
#define RETRO_SERIALIZATION_QUIRK_MUST_INITIALIZE   (1 << 1)
 
#define RETRO_SERIALIZATION_QUIRK_CORE_VARIABLE_SIZE   (1 << 2)
 
#define RETRO_SERIALIZATION_QUIRK_FRONT_VARIABLE_SIZE   (1 << 3)
 
#define RETRO_SERIALIZATION_QUIRK_SINGLE_SESSION   (1 << 4)
 
#define RETRO_SERIALIZATION_QUIRK_ENDIAN_DEPENDENT   (1 << 5)
 
#define RETRO_SERIALIZATION_QUIRK_PLATFORM_DEPENDENT   (1 << 6)
 
#define RETRO_MEMDESC_CONST   (1 << 0) /* The frontend will never change this memory area once retro_load_game has returned. */
 
#define RETRO_MEMDESC_BIGENDIAN   (1 << 1) /* The memory area contains big endian data. Default is little endian. */
 
#define RETRO_MEMDESC_SYSTEM_RAM   (1 << 2) /* The memory area is system RAM. This is main RAM of the gaming system. */
 
#define RETRO_MEMDESC_SAVE_RAM   (1 << 3) /* The memory area is save RAM. This RAM is usually found on a game cartridge, backed up by a battery. */
 
#define RETRO_MEMDESC_VIDEO_RAM   (1 << 4) /* The memory area is video RAM (VRAM) */
 
#define RETRO_MEMDESC_ALIGN_2   (1 << 16) /* All memory access in this area is aligned to their own size, or 2, whichever is smaller. */
 
#define RETRO_MEMDESC_ALIGN_4   (2 << 16)
 
#define RETRO_MEMDESC_ALIGN_8   (3 << 16)
 
#define RETRO_MEMDESC_MINSIZE_2   (1 << 24) /* All memory in this region is accessed at least 2 bytes at the time. */
 
#define RETRO_MEMDESC_MINSIZE_4   (2 << 24)
 
#define RETRO_MEMDESC_MINSIZE_8   (3 << 24)
 
#define RETRO_SIMD_SSE   (1 << 0)
 
#define RETRO_SIMD_SSE2   (1 << 1)
 
#define RETRO_SIMD_VMX   (1 << 2)
 
#define RETRO_SIMD_VMX128   (1 << 3)
 
#define RETRO_SIMD_AVX   (1 << 4)
 
#define RETRO_SIMD_NEON   (1 << 5)
 
#define RETRO_SIMD_SSE3   (1 << 6)
 
#define RETRO_SIMD_SSSE3   (1 << 7)
 
#define RETRO_SIMD_MMX   (1 << 8)
 
#define RETRO_SIMD_MMXEXT   (1 << 9)
 
#define RETRO_SIMD_SSE4   (1 << 10)
 
#define RETRO_SIMD_SSE42   (1 << 11)
 
#define RETRO_SIMD_AVX2   (1 << 12)
 
#define RETRO_SIMD_VFPU   (1 << 13)
 
#define RETRO_SIMD_PS   (1 << 14)
 
#define RETRO_SIMD_AES   (1 << 15)
 
#define RETRO_SIMD_VFPV3   (1 << 16)
 
#define RETRO_SIMD_VFPV4   (1 << 17)
 
#define RETRO_SIMD_POPCNT   (1 << 18)
 
#define RETRO_SIMD_MOVBE   (1 << 19)
 
#define RETRO_SIMD_CMOV   (1 << 20)
 
#define RETRO_SIMD_ASIMD   (1 << 21)
 
#define RETRO_SENSOR_ACCELEROMETER_X   0
 
#define RETRO_SENSOR_ACCELEROMETER_Y   1
 
#define RETRO_SENSOR_ACCELEROMETER_Z   2
 
#define RETRO_HW_FRAME_BUFFER_VALID   ((void*)-1)
 
#define RETRO_MEMORY_ACCESS_WRITE   (1 << 0)
 
#define RETRO_MEMORY_ACCESS_READ   (1 << 1)
 
#define RETRO_MEMORY_TYPE_CACHED   (1 << 0)
 

Typedefs

typedef const char *(RETRO_CALLCONVretro_vfs_get_path_t) (struct retro_vfs_file_handle *stream)
 
typedef struct retro_vfs_file_handle *RETRO_CALLCONVretro_vfs_open_t(const char *path, unsigned mode, unsigned hints)
 
typedef int(RETRO_CALLCONVretro_vfs_close_t) (struct retro_vfs_file_handle *stream)
 
typedef int64_t(RETRO_CALLCONVretro_vfs_size_t) (struct retro_vfs_file_handle *stream)
 
typedef int64_t(RETRO_CALLCONVretro_vfs_truncate_t) (struct retro_vfs_file_handle *stream, int64_t length)
 
typedef int64_t(RETRO_CALLCONVretro_vfs_tell_t) (struct retro_vfs_file_handle *stream)
 
typedef int64_t(RETRO_CALLCONVretro_vfs_seek_t) (struct retro_vfs_file_handle *stream, int64_t offset, int seek_position)
 
typedef int64_t(RETRO_CALLCONVretro_vfs_read_t) (struct retro_vfs_file_handle *stream, void *s, uint64_t len)
 
typedef int64_t(RETRO_CALLCONVretro_vfs_write_t) (struct retro_vfs_file_handle *stream, const void *s, uint64_t len)
 
typedef int(RETRO_CALLCONVretro_vfs_flush_t) (struct retro_vfs_file_handle *stream)
 
typedef int(RETRO_CALLCONVretro_vfs_remove_t) (const char *path)
 
typedef int(RETRO_CALLCONVretro_vfs_rename_t) (const char *old_path, const char *new_path)
 
typedef void(RETRO_CALLCONVretro_set_led_state_t) (int led, int state)
 
typedef bool(RETRO_CALLCONVretro_midi_input_enabled_t) (void)
 
typedef bool(RETRO_CALLCONVretro_midi_output_enabled_t) (void)
 
typedef bool(RETRO_CALLCONVretro_midi_read_t) (uint8_t *byte)
 
typedef bool(RETRO_CALLCONVretro_midi_write_t) (uint8_t byte, uint32_t delta_time)
 
typedef bool(RETRO_CALLCONVretro_midi_flush_t) (void)
 
typedef void(RETRO_CALLCONVretro_proc_address_t) (void)
 
typedef retro_proc_address_t(RETRO_CALLCONVretro_get_proc_address_t) (const char *sym)
 
typedef void(RETRO_CALLCONVretro_log_printf_t) (enum retro_log_level level, const char *fmt,...)
 
typedef uint64_t retro_perf_tick_t
 
typedef int64_t retro_time_t
 
typedef retro_time_t(RETRO_CALLCONVretro_perf_get_time_usec_t) (void)
 
typedef retro_perf_tick_t(RETRO_CALLCONVretro_perf_get_counter_t) (void)
 
typedef uint64_t(RETRO_CALLCONVretro_get_cpu_features_t) (void)
 
typedef void(RETRO_CALLCONVretro_perf_log_t) (void)
 
typedef void(RETRO_CALLCONVretro_perf_register_t) (struct retro_perf_counter *counter)
 
typedef void(RETRO_CALLCONVretro_perf_start_t) (struct retro_perf_counter *counter)
 
typedef void(RETRO_CALLCONVretro_perf_stop_t) (struct retro_perf_counter *counter)
 
typedef bool(RETRO_CALLCONVretro_set_sensor_state_t) (unsigned port, enum retro_sensor_action action, unsigned rate)
 
typedef float(RETRO_CALLCONVretro_sensor_get_input_t) (unsigned port, unsigned id)
 
typedef bool(RETRO_CALLCONVretro_camera_start_t) (void)
 
typedef void(RETRO_CALLCONVretro_camera_stop_t) (void)
 
typedef void(RETRO_CALLCONVretro_camera_lifetime_status_t) (void)
 
typedef void(RETRO_CALLCONVretro_camera_frame_raw_framebuffer_t) (const uint32_t *buffer, unsigned width, unsigned height, size_t pitch)
 
typedef void(RETRO_CALLCONVretro_camera_frame_opengl_texture_t) (unsigned texture_id, unsigned texture_target, const float *affine)
 
typedef void(RETRO_CALLCONVretro_location_set_interval_t) (unsigned interval_ms, unsigned interval_distance)
 
typedef bool(RETRO_CALLCONVretro_location_start_t) (void)
 
typedef void(RETRO_CALLCONVretro_location_stop_t) (void)
 
typedef bool(RETRO_CALLCONVretro_location_get_position_t) (double *lat, double *lon, double *horiz_accuracy, double *vert_accuracy)
 
typedef void(RETRO_CALLCONVretro_location_lifetime_status_t) (void)
 
typedef bool(RETRO_CALLCONVretro_set_rumble_state_t) (unsigned port, enum retro_rumble_effect effect, uint16_t strength)
 
typedef void(RETRO_CALLCONVretro_audio_callback_t) (void)
 
typedef void(RETRO_CALLCONVretro_audio_set_state_callback_t) (bool enabled)
 
typedef int64_t retro_usec_t
 
typedef void(RETRO_CALLCONVretro_frame_time_callback_t) (retro_usec_t usec)
 
typedef void(RETRO_CALLCONVretro_hw_context_reset_t) (void)
 
typedef uintptr_t(RETRO_CALLCONVretro_hw_get_current_framebuffer_t) (void)
 
typedef retro_proc_address_t(RETRO_CALLCONVretro_hw_get_proc_address_t) (const char *sym)
 
typedef void(RETRO_CALLCONVretro_keyboard_event_t) (bool down, unsigned keycode, uint32_t character, uint16_t key_modifiers)
 
typedef bool(RETRO_CALLCONVretro_set_eject_state_t) (bool ejected)
 
typedef bool(RETRO_CALLCONVretro_get_eject_state_t) (void)
 
typedef unsigned(RETRO_CALLCONVretro_get_image_index_t) (void)
 
typedef bool(RETRO_CALLCONVretro_set_image_index_t) (unsigned index)
 
typedef unsigned(RETRO_CALLCONVretro_get_num_images_t) (void)
 
typedef const struct retro_game_infoinfo
 
typedef bool(RETRO_CALLCONVretro_add_image_index_t) (void)
 
typedef bool(RETRO_CALLCONVretro_environment_t) (unsigned cmd, void *data)
 
typedef void(RETRO_CALLCONVretro_video_refresh_t) (const void *data, unsigned width, unsigned height, size_t pitch)
 
typedef void(RETRO_CALLCONVretro_audio_sample_t) (int16_t left, int16_t right)
 
typedef size_t(RETRO_CALLCONVretro_audio_sample_batch_t) (const int16_t *data, size_t frames)
 
typedef void(RETRO_CALLCONVretro_input_poll_t) (void)
 
typedef int16_t(RETRO_CALLCONVretro_input_state_t) (unsigned port, unsigned device, unsigned index, unsigned id)
 

Enumerations

enum  retro_language {
  RETRO_LANGUAGE_ENGLISH = 0, RETRO_LANGUAGE_JAPANESE = 1, RETRO_LANGUAGE_FRENCH = 2, RETRO_LANGUAGE_SPANISH = 3,
  RETRO_LANGUAGE_GERMAN = 4, RETRO_LANGUAGE_ITALIAN = 5, RETRO_LANGUAGE_DUTCH = 6, RETRO_LANGUAGE_PORTUGUESE_BRAZIL = 7,
  RETRO_LANGUAGE_PORTUGUESE_PORTUGAL = 8, RETRO_LANGUAGE_RUSSIAN = 9, RETRO_LANGUAGE_KOREAN = 10, RETRO_LANGUAGE_CHINESE_TRADITIONAL = 11,
  RETRO_LANGUAGE_CHINESE_SIMPLIFIED = 12, RETRO_LANGUAGE_ESPERANTO = 13, RETRO_LANGUAGE_POLISH = 14, RETRO_LANGUAGE_VIETNAMESE = 15,
  RETRO_LANGUAGE_ARABIC = 16, RETRO_LANGUAGE_GREEK = 17, RETRO_LANGUAGE_LAST, RETRO_LANGUAGE_DUMMY = INT_MAX
}
 
enum  retro_key {
  RETROK_UNKNOWN = 0, RETROK_FIRST = 0, RETROK_BACKSPACE = 8, RETROK_TAB = 9,
  RETROK_CLEAR = 12, RETROK_RETURN = 13, RETROK_PAUSE = 19, RETROK_ESCAPE = 27,
  RETROK_SPACE = 32, RETROK_EXCLAIM = 33, RETROK_QUOTEDBL = 34, RETROK_HASH = 35,
  RETROK_DOLLAR = 36, RETROK_AMPERSAND = 38, RETROK_QUOTE = 39, RETROK_LEFTPAREN = 40,
  RETROK_RIGHTPAREN = 41, RETROK_ASTERISK = 42, RETROK_PLUS = 43, RETROK_COMMA = 44,
  RETROK_MINUS = 45, RETROK_PERIOD = 46, RETROK_SLASH = 47, RETROK_0 = 48,
  RETROK_1 = 49, RETROK_2 = 50, RETROK_3 = 51, RETROK_4 = 52,
  RETROK_5 = 53, RETROK_6 = 54, RETROK_7 = 55, RETROK_8 = 56,
  RETROK_9 = 57, RETROK_COLON = 58, RETROK_SEMICOLON = 59, RETROK_LESS = 60,
  RETROK_EQUALS = 61, RETROK_GREATER = 62, RETROK_QUESTION = 63, RETROK_AT = 64,
  RETROK_LEFTBRACKET = 91, RETROK_BACKSLASH = 92, RETROK_RIGHTBRACKET = 93, RETROK_CARET = 94,
  RETROK_UNDERSCORE = 95, RETROK_BACKQUOTE = 96, RETROK_a = 97, RETROK_b = 98,
  RETROK_c = 99, RETROK_d = 100, RETROK_e = 101, RETROK_f = 102,
  RETROK_g = 103, RETROK_h = 104, RETROK_i = 105, RETROK_j = 106,
  RETROK_k = 107, RETROK_l = 108, RETROK_m = 109, RETROK_n = 110,
  RETROK_o = 111, RETROK_p = 112, RETROK_q = 113, RETROK_r = 114,
  RETROK_s = 115, RETROK_t = 116, RETROK_u = 117, RETROK_v = 118,
  RETROK_w = 119, RETROK_x = 120, RETROK_y = 121, RETROK_z = 122,
  RETROK_LEFTBRACE = 123, RETROK_BAR = 124, RETROK_RIGHTBRACE = 125, RETROK_TILDE = 126,
  RETROK_DELETE = 127, RETROK_KP0 = 256, RETROK_KP1 = 257, RETROK_KP2 = 258,
  RETROK_KP3 = 259, RETROK_KP4 = 260, RETROK_KP5 = 261, RETROK_KP6 = 262,
  RETROK_KP7 = 263, RETROK_KP8 = 264, RETROK_KP9 = 265, RETROK_KP_PERIOD = 266,
  RETROK_KP_DIVIDE = 267, RETROK_KP_MULTIPLY = 268, RETROK_KP_MINUS = 269, RETROK_KP_PLUS = 270,
  RETROK_KP_ENTER = 271, RETROK_KP_EQUALS = 272, RETROK_UP = 273, RETROK_DOWN = 274,
  RETROK_RIGHT = 275, RETROK_LEFT = 276, RETROK_INSERT = 277, RETROK_HOME = 278,
  RETROK_END = 279, RETROK_PAGEUP = 280, RETROK_PAGEDOWN = 281, RETROK_F1 = 282,
  RETROK_F2 = 283, RETROK_F3 = 284, RETROK_F4 = 285, RETROK_F5 = 286,
  RETROK_F6 = 287, RETROK_F7 = 288, RETROK_F8 = 289, RETROK_F9 = 290,
  RETROK_F10 = 291, RETROK_F11 = 292, RETROK_F12 = 293, RETROK_F13 = 294,
  RETROK_F14 = 295, RETROK_F15 = 296, RETROK_NUMLOCK = 300, RETROK_CAPSLOCK = 301,
  RETROK_SCROLLOCK = 302, RETROK_RSHIFT = 303, RETROK_LSHIFT = 304, RETROK_RCTRL = 305,
  RETROK_LCTRL = 306, RETROK_RALT = 307, RETROK_LALT = 308, RETROK_RMETA = 309,
  RETROK_LMETA = 310, RETROK_LSUPER = 311, RETROK_RSUPER = 312, RETROK_MODE = 313,
  RETROK_COMPOSE = 314, RETROK_HELP = 315, RETROK_PRINT = 316, RETROK_SYSREQ = 317,
  RETROK_BREAK = 318, RETROK_MENU = 319, RETROK_POWER = 320, RETROK_EURO = 321,
  RETROK_UNDO = 322, RETROK_OEM_102 = 323, RETROK_LAST, RETROK_DUMMY = INT_MAX
}
 
enum  retro_mod {
  RETROKMOD_NONE = 0x0000, RETROKMOD_SHIFT = 0x01, RETROKMOD_CTRL = 0x02, RETROKMOD_ALT = 0x04,
  RETROKMOD_META = 0x08, RETROKMOD_NUMLOCK = 0x10, RETROKMOD_CAPSLOCK = 0x20, RETROKMOD_SCROLLOCK = 0x40,
  RETROKMOD_DUMMY = INT_MAX
}
 
enum  retro_hw_render_interface_type {
  RETRO_HW_RENDER_INTERFACE_VULKAN = 0, RETRO_HW_RENDER_INTERFACE_D3D9 = 1, RETRO_HW_RENDER_INTERFACE_D3D10 = 2, RETRO_HW_RENDER_INTERFACE_D3D11 = 3,
  RETRO_HW_RENDER_INTERFACE_D3D12 = 4, RETRO_HW_RENDER_INTERFACE_DUMMY = INT_MAX
}
 
enum  retro_hw_render_context_negotiation_interface_type { RETRO_HW_RENDER_CONTEXT_NEGOTIATION_INTERFACE_VULKAN = 0, RETRO_HW_RENDER_CONTEXT_NEGOTIATION_INTERFACE_DUMMY = INT_MAX }
 
enum  retro_log_level {
  RETRO_LOG_DEBUG = 0, RETRO_LOG_INFO, RETRO_LOG_WARN, RETRO_LOG_ERROR,
  RETRO_LOG_DUMMY = INT_MAX
}
 
enum  retro_sensor_action { RETRO_SENSOR_ACCELEROMETER_ENABLE = 0, RETRO_SENSOR_ACCELEROMETER_DISABLE, RETRO_SENSOR_DUMMY = INT_MAX }
 
enum  retro_camera_buffer { RETRO_CAMERA_BUFFER_OPENGL_TEXTURE = 0, RETRO_CAMERA_BUFFER_RAW_FRAMEBUFFER, RETRO_CAMERA_BUFFER_DUMMY = INT_MAX }
 
enum  retro_rumble_effect { RETRO_RUMBLE_STRONG = 0, RETRO_RUMBLE_WEAK = 1, RETRO_RUMBLE_DUMMY = INT_MAX }
 
enum  retro_hw_context_type {
  RETRO_HW_CONTEXT_NONE = 0, RETRO_HW_CONTEXT_OPENGL = 1, RETRO_HW_CONTEXT_OPENGLES2 = 2, RETRO_HW_CONTEXT_OPENGL_CORE = 3,
  RETRO_HW_CONTEXT_OPENGLES3 = 4, RETRO_HW_CONTEXT_OPENGLES_VERSION = 5, RETRO_HW_CONTEXT_VULKAN = 6, RETRO_HW_CONTEXT_DIRECT3D = 7,
  RETRO_HW_CONTEXT_DUMMY = INT_MAX
}
 
enum  retro_pixel_format { RETRO_PIXEL_FORMAT_0RGB1555 = 0, RETRO_PIXEL_FORMAT_XRGB8888 = 1, RETRO_PIXEL_FORMAT_RGB565 = 2, RETRO_PIXEL_FORMAT_UNKNOWN = INT_MAX }
 

Functions

typedef bool (RETRO_CALLCONV *retro_replace_image_index_t)(unsigned index
 
RETRO_API void retro_set_environment (retro_environment_t)
 
RETRO_API void retro_set_video_refresh (retro_video_refresh_t)
 
RETRO_API void retro_set_audio_sample (retro_audio_sample_t)
 
RETRO_API void retro_set_audio_sample_batch (retro_audio_sample_batch_t)
 
RETRO_API void retro_set_input_poll (retro_input_poll_t)
 
RETRO_API void retro_set_input_state (retro_input_state_t)
 
RETRO_API void retro_init (void)
 
RETRO_API void retro_deinit (void)
 
RETRO_API unsigned retro_api_version (void)
 
RETRO_API void retro_get_system_info (struct retro_system_info *info)
 
RETRO_API void retro_get_system_av_info (struct retro_system_av_info *info)
 
RETRO_API void retro_set_controller_port_device (unsigned port, unsigned device)
 
RETRO_API void retro_reset (void)
 
RETRO_API void retro_run (void)
 
RETRO_API size_t retro_serialize_size (void)
 
RETRO_API bool retro_serialize (void *data, size_t size)
 
RETRO_API bool retro_unserialize (const void *data, size_t size)
 
RETRO_API void retro_cheat_reset (void)
 
RETRO_API void retro_cheat_set (unsigned index, bool enabled, const char *code)
 
RETRO_API bool retro_load_game (const struct retro_game_info *game)
 
RETRO_API bool retro_load_game_special (unsigned game_type, const struct retro_game_info *info, size_t num_info)
 
RETRO_API void retro_unload_game (void)
 
RETRO_API unsigned retro_get_region (void)
 
RETRO_API voidretro_get_memory_data (unsigned id)
 
RETRO_API size_t retro_get_memory_size (unsigned id)
 

Macro Definition Documentation

◆ RETRO_API

#define RETRO_API   RETRO_CALLCONV

◆ RETRO_API_VERSION

#define RETRO_API_VERSION   1

◆ RETRO_CALLCONV

#define RETRO_CALLCONV   /* all other platforms only have one calling convention each */

◆ RETRO_DEVICE_ANALOG

#define RETRO_DEVICE_ANALOG   5

◆ RETRO_DEVICE_ID_ANALOG_X

#define RETRO_DEVICE_ID_ANALOG_X   0

◆ RETRO_DEVICE_ID_ANALOG_Y

#define RETRO_DEVICE_ID_ANALOG_Y   1

◆ RETRO_DEVICE_ID_JOYPAD_A

#define RETRO_DEVICE_ID_JOYPAD_A   8

◆ RETRO_DEVICE_ID_JOYPAD_B

#define RETRO_DEVICE_ID_JOYPAD_B   0

◆ RETRO_DEVICE_ID_JOYPAD_DOWN

#define RETRO_DEVICE_ID_JOYPAD_DOWN   5

◆ RETRO_DEVICE_ID_JOYPAD_L

#define RETRO_DEVICE_ID_JOYPAD_L   10

◆ RETRO_DEVICE_ID_JOYPAD_L2

#define RETRO_DEVICE_ID_JOYPAD_L2   12

◆ RETRO_DEVICE_ID_JOYPAD_L3

#define RETRO_DEVICE_ID_JOYPAD_L3   14

◆ RETRO_DEVICE_ID_JOYPAD_LEFT

#define RETRO_DEVICE_ID_JOYPAD_LEFT   6

◆ RETRO_DEVICE_ID_JOYPAD_R

#define RETRO_DEVICE_ID_JOYPAD_R   11

◆ RETRO_DEVICE_ID_JOYPAD_R2

#define RETRO_DEVICE_ID_JOYPAD_R2   13

◆ RETRO_DEVICE_ID_JOYPAD_R3

#define RETRO_DEVICE_ID_JOYPAD_R3   15

◆ RETRO_DEVICE_ID_JOYPAD_RIGHT

#define RETRO_DEVICE_ID_JOYPAD_RIGHT   7

◆ RETRO_DEVICE_ID_JOYPAD_SELECT

#define RETRO_DEVICE_ID_JOYPAD_SELECT   2

◆ RETRO_DEVICE_ID_JOYPAD_START

#define RETRO_DEVICE_ID_JOYPAD_START   3

◆ RETRO_DEVICE_ID_JOYPAD_UP

#define RETRO_DEVICE_ID_JOYPAD_UP   4

◆ RETRO_DEVICE_ID_JOYPAD_X

#define RETRO_DEVICE_ID_JOYPAD_X   9

◆ RETRO_DEVICE_ID_JOYPAD_Y

#define RETRO_DEVICE_ID_JOYPAD_Y   1

◆ RETRO_DEVICE_ID_LIGHTGUN_AUX_A

#define RETRO_DEVICE_ID_LIGHTGUN_AUX_A   3

◆ RETRO_DEVICE_ID_LIGHTGUN_AUX_B

#define RETRO_DEVICE_ID_LIGHTGUN_AUX_B   4

◆ RETRO_DEVICE_ID_LIGHTGUN_AUX_C

#define RETRO_DEVICE_ID_LIGHTGUN_AUX_C   8

◆ RETRO_DEVICE_ID_LIGHTGUN_CURSOR

#define RETRO_DEVICE_ID_LIGHTGUN_CURSOR   3 /*Use Aux:A*/

◆ RETRO_DEVICE_ID_LIGHTGUN_DPAD_DOWN

#define RETRO_DEVICE_ID_LIGHTGUN_DPAD_DOWN   10

◆ RETRO_DEVICE_ID_LIGHTGUN_DPAD_LEFT

#define RETRO_DEVICE_ID_LIGHTGUN_DPAD_LEFT   11

◆ RETRO_DEVICE_ID_LIGHTGUN_DPAD_RIGHT

#define RETRO_DEVICE_ID_LIGHTGUN_DPAD_RIGHT   12

◆ RETRO_DEVICE_ID_LIGHTGUN_DPAD_UP

#define RETRO_DEVICE_ID_LIGHTGUN_DPAD_UP   9

◆ RETRO_DEVICE_ID_LIGHTGUN_IS_OFFSCREEN

#define RETRO_DEVICE_ID_LIGHTGUN_IS_OFFSCREEN   15 /*Status Check*/

◆ RETRO_DEVICE_ID_LIGHTGUN_PAUSE

#define RETRO_DEVICE_ID_LIGHTGUN_PAUSE   5 /*Use Start*/

◆ RETRO_DEVICE_ID_LIGHTGUN_RELOAD

#define RETRO_DEVICE_ID_LIGHTGUN_RELOAD   16 /*Forced off-screen shot*/

◆ RETRO_DEVICE_ID_LIGHTGUN_SCREEN_X

#define RETRO_DEVICE_ID_LIGHTGUN_SCREEN_X   13 /*Absolute Position*/

◆ RETRO_DEVICE_ID_LIGHTGUN_SCREEN_Y

#define RETRO_DEVICE_ID_LIGHTGUN_SCREEN_Y   14 /*Absolute*/

◆ RETRO_DEVICE_ID_LIGHTGUN_SELECT

#define RETRO_DEVICE_ID_LIGHTGUN_SELECT   7

◆ RETRO_DEVICE_ID_LIGHTGUN_START

#define RETRO_DEVICE_ID_LIGHTGUN_START   6

◆ RETRO_DEVICE_ID_LIGHTGUN_TRIGGER

#define RETRO_DEVICE_ID_LIGHTGUN_TRIGGER   2

◆ RETRO_DEVICE_ID_LIGHTGUN_TURBO

#define RETRO_DEVICE_ID_LIGHTGUN_TURBO   4 /*Use Aux:B*/

◆ RETRO_DEVICE_ID_LIGHTGUN_X

#define RETRO_DEVICE_ID_LIGHTGUN_X   0 /*Relative Position*/

◆ RETRO_DEVICE_ID_LIGHTGUN_Y

#define RETRO_DEVICE_ID_LIGHTGUN_Y   1 /*Relative*/

◆ RETRO_DEVICE_ID_MOUSE_BUTTON_4

#define RETRO_DEVICE_ID_MOUSE_BUTTON_4   9

◆ RETRO_DEVICE_ID_MOUSE_BUTTON_5

#define RETRO_DEVICE_ID_MOUSE_BUTTON_5   10

◆ RETRO_DEVICE_ID_MOUSE_HORIZ_WHEELDOWN

#define RETRO_DEVICE_ID_MOUSE_HORIZ_WHEELDOWN   8

◆ RETRO_DEVICE_ID_MOUSE_HORIZ_WHEELUP

#define RETRO_DEVICE_ID_MOUSE_HORIZ_WHEELUP   7

◆ RETRO_DEVICE_ID_MOUSE_LEFT

#define RETRO_DEVICE_ID_MOUSE_LEFT   2

◆ RETRO_DEVICE_ID_MOUSE_MIDDLE

#define RETRO_DEVICE_ID_MOUSE_MIDDLE   6

◆ RETRO_DEVICE_ID_MOUSE_RIGHT

#define RETRO_DEVICE_ID_MOUSE_RIGHT   3

◆ RETRO_DEVICE_ID_MOUSE_WHEELDOWN

#define RETRO_DEVICE_ID_MOUSE_WHEELDOWN   5

◆ RETRO_DEVICE_ID_MOUSE_WHEELUP

#define RETRO_DEVICE_ID_MOUSE_WHEELUP   4

◆ RETRO_DEVICE_ID_MOUSE_X

#define RETRO_DEVICE_ID_MOUSE_X   0

◆ RETRO_DEVICE_ID_MOUSE_Y

#define RETRO_DEVICE_ID_MOUSE_Y   1

◆ RETRO_DEVICE_ID_POINTER_PRESSED

#define RETRO_DEVICE_ID_POINTER_PRESSED   2

◆ RETRO_DEVICE_ID_POINTER_X

#define RETRO_DEVICE_ID_POINTER_X   0

◆ RETRO_DEVICE_ID_POINTER_Y

#define RETRO_DEVICE_ID_POINTER_Y   1

◆ RETRO_DEVICE_INDEX_ANALOG_BUTTON

#define RETRO_DEVICE_INDEX_ANALOG_BUTTON   2

◆ RETRO_DEVICE_INDEX_ANALOG_LEFT

#define RETRO_DEVICE_INDEX_ANALOG_LEFT   0

◆ RETRO_DEVICE_INDEX_ANALOG_RIGHT

#define RETRO_DEVICE_INDEX_ANALOG_RIGHT   1

◆ RETRO_DEVICE_JOYPAD

#define RETRO_DEVICE_JOYPAD   1

◆ RETRO_DEVICE_KEYBOARD

#define RETRO_DEVICE_KEYBOARD   3

◆ RETRO_DEVICE_LIGHTGUN

#define RETRO_DEVICE_LIGHTGUN   4

◆ RETRO_DEVICE_MASK

#define RETRO_DEVICE_MASK   ((1 << RETRO_DEVICE_TYPE_SHIFT) - 1)

◆ RETRO_DEVICE_MOUSE

#define RETRO_DEVICE_MOUSE   2

◆ RETRO_DEVICE_NONE

#define RETRO_DEVICE_NONE   0

◆ RETRO_DEVICE_POINTER

#define RETRO_DEVICE_POINTER   6

◆ RETRO_DEVICE_SUBCLASS

#define RETRO_DEVICE_SUBCLASS (   base,
  id 
)    (((id + 1) << RETRO_DEVICE_TYPE_SHIFT) | base)

◆ RETRO_DEVICE_TYPE_SHIFT

#define RETRO_DEVICE_TYPE_SHIFT   8

◆ RETRO_ENVIRONMENT_EXPERIMENTAL

#define RETRO_ENVIRONMENT_EXPERIMENTAL   0x10000

◆ RETRO_ENVIRONMENT_GET_AUDIO_VIDEO_ENABLE

#define RETRO_ENVIRONMENT_GET_AUDIO_VIDEO_ENABLE   (47 | RETRO_ENVIRONMENT_EXPERIMENTAL)

◆ RETRO_ENVIRONMENT_GET_CAMERA_INTERFACE

#define RETRO_ENVIRONMENT_GET_CAMERA_INTERFACE   (26 | RETRO_ENVIRONMENT_EXPERIMENTAL)

◆ RETRO_ENVIRONMENT_GET_CAN_DUPE

#define RETRO_ENVIRONMENT_GET_CAN_DUPE
Value:
3 /* bool * --
* Boolean value whether or not frontend supports frame duping,
* passing NULL to video frame callback.
*/

◆ RETRO_ENVIRONMENT_GET_CONTENT_DIRECTORY

#define RETRO_ENVIRONMENT_GET_CONTENT_DIRECTORY   30 /* Old name, kept for compatibility. */

◆ RETRO_ENVIRONMENT_GET_CORE_ASSETS_DIRECTORY

#define RETRO_ENVIRONMENT_GET_CORE_ASSETS_DIRECTORY   30

◆ RETRO_ENVIRONMENT_GET_CURRENT_SOFTWARE_FRAMEBUFFER

#define RETRO_ENVIRONMENT_GET_CURRENT_SOFTWARE_FRAMEBUFFER   (40 | RETRO_ENVIRONMENT_EXPERIMENTAL)

◆ RETRO_ENVIRONMENT_GET_FASTFORWARDING

#define RETRO_ENVIRONMENT_GET_FASTFORWARDING   (49 | RETRO_ENVIRONMENT_EXPERIMENTAL)

◆ RETRO_ENVIRONMENT_GET_HW_RENDER_INTERFACE

#define RETRO_ENVIRONMENT_GET_HW_RENDER_INTERFACE   (41 | RETRO_ENVIRONMENT_EXPERIMENTAL)

◆ RETRO_ENVIRONMENT_GET_INPUT_DEVICE_CAPABILITIES

#define RETRO_ENVIRONMENT_GET_INPUT_DEVICE_CAPABILITIES   24

◆ RETRO_ENVIRONMENT_GET_LANGUAGE

#define RETRO_ENVIRONMENT_GET_LANGUAGE   39

◆ RETRO_ENVIRONMENT_GET_LED_INTERFACE

#define RETRO_ENVIRONMENT_GET_LED_INTERFACE   (46 | RETRO_ENVIRONMENT_EXPERIMENTAL)

◆ RETRO_ENVIRONMENT_GET_LIBRETRO_PATH

#define RETRO_ENVIRONMENT_GET_LIBRETRO_PATH   19

◆ RETRO_ENVIRONMENT_GET_LOCATION_INTERFACE

#define RETRO_ENVIRONMENT_GET_LOCATION_INTERFACE   29

◆ RETRO_ENVIRONMENT_GET_LOG_INTERFACE

#define RETRO_ENVIRONMENT_GET_LOG_INTERFACE   27

◆ RETRO_ENVIRONMENT_GET_MIDI_INTERFACE

#define RETRO_ENVIRONMENT_GET_MIDI_INTERFACE   (48 | RETRO_ENVIRONMENT_EXPERIMENTAL)

◆ RETRO_ENVIRONMENT_GET_OVERSCAN

#define RETRO_ENVIRONMENT_GET_OVERSCAN
Value:
2 /* bool * --
* Boolean value whether or not the implementation should use overscan,
* or crop away overscan.
*/

◆ RETRO_ENVIRONMENT_GET_PERF_INTERFACE

#define RETRO_ENVIRONMENT_GET_PERF_INTERFACE   28

◆ RETRO_ENVIRONMENT_GET_RUMBLE_INTERFACE

#define RETRO_ENVIRONMENT_GET_RUMBLE_INTERFACE   23

◆ RETRO_ENVIRONMENT_GET_SAVE_DIRECTORY

#define RETRO_ENVIRONMENT_GET_SAVE_DIRECTORY   31

◆ RETRO_ENVIRONMENT_GET_SENSOR_INTERFACE

#define RETRO_ENVIRONMENT_GET_SENSOR_INTERFACE   (25 | RETRO_ENVIRONMENT_EXPERIMENTAL)

◆ RETRO_ENVIRONMENT_GET_SYSTEM_DIRECTORY

#define RETRO_ENVIRONMENT_GET_SYSTEM_DIRECTORY   9

◆ RETRO_ENVIRONMENT_GET_USERNAME

#define RETRO_ENVIRONMENT_GET_USERNAME   38

◆ RETRO_ENVIRONMENT_GET_VARIABLE

#define RETRO_ENVIRONMENT_GET_VARIABLE   15

◆ RETRO_ENVIRONMENT_GET_VARIABLE_UPDATE

#define RETRO_ENVIRONMENT_GET_VARIABLE_UPDATE   17

◆ RETRO_ENVIRONMENT_GET_VFS_INTERFACE

#define RETRO_ENVIRONMENT_GET_VFS_INTERFACE   (45 | RETRO_ENVIRONMENT_EXPERIMENTAL)

◆ RETRO_ENVIRONMENT_PRIVATE

#define RETRO_ENVIRONMENT_PRIVATE   0x20000

◆ RETRO_ENVIRONMENT_SET_AUDIO_CALLBACK

#define RETRO_ENVIRONMENT_SET_AUDIO_CALLBACK   22

◆ RETRO_ENVIRONMENT_SET_CONTROLLER_INFO

#define RETRO_ENVIRONMENT_SET_CONTROLLER_INFO   35

◆ RETRO_ENVIRONMENT_SET_DISK_CONTROL_INTERFACE

#define RETRO_ENVIRONMENT_SET_DISK_CONTROL_INTERFACE   13

◆ RETRO_ENVIRONMENT_SET_FRAME_TIME_CALLBACK

#define RETRO_ENVIRONMENT_SET_FRAME_TIME_CALLBACK   21

◆ RETRO_ENVIRONMENT_SET_GEOMETRY

#define RETRO_ENVIRONMENT_SET_GEOMETRY   37

◆ RETRO_ENVIRONMENT_SET_HW_RENDER

#define RETRO_ENVIRONMENT_SET_HW_RENDER   14

◆ RETRO_ENVIRONMENT_SET_HW_RENDER_CONTEXT_NEGOTIATION_INTERFACE

#define RETRO_ENVIRONMENT_SET_HW_RENDER_CONTEXT_NEGOTIATION_INTERFACE   (43 | RETRO_ENVIRONMENT_EXPERIMENTAL)

◆ RETRO_ENVIRONMENT_SET_HW_SHARED_CONTEXT

#define RETRO_ENVIRONMENT_SET_HW_SHARED_CONTEXT   (44 | RETRO_ENVIRONMENT_EXPERIMENTAL)

◆ RETRO_ENVIRONMENT_SET_INPUT_DESCRIPTORS

#define RETRO_ENVIRONMENT_SET_INPUT_DESCRIPTORS   11

◆ RETRO_ENVIRONMENT_SET_KEYBOARD_CALLBACK

#define RETRO_ENVIRONMENT_SET_KEYBOARD_CALLBACK   12

◆ RETRO_ENVIRONMENT_SET_MEMORY_MAPS

#define RETRO_ENVIRONMENT_SET_MEMORY_MAPS   (36 | RETRO_ENVIRONMENT_EXPERIMENTAL)

◆ RETRO_ENVIRONMENT_SET_MESSAGE

#define RETRO_ENVIRONMENT_SET_MESSAGE
Value:
6 /* const struct retro_message * --
* Sets a message to be displayed in implementation-specific manner
* for a certain amount of 'frames'.
* Should not be used for trivial messages, which should simply be
* logged via RETRO_ENVIRONMENT_GET_LOG_INTERFACE (or as a
* fallback, stderr).
*/

◆ RETRO_ENVIRONMENT_SET_PERFORMANCE_LEVEL

#define RETRO_ENVIRONMENT_SET_PERFORMANCE_LEVEL   8

◆ RETRO_ENVIRONMENT_SET_PIXEL_FORMAT

#define RETRO_ENVIRONMENT_SET_PIXEL_FORMAT   10

◆ RETRO_ENVIRONMENT_SET_PROC_ADDRESS_CALLBACK

#define RETRO_ENVIRONMENT_SET_PROC_ADDRESS_CALLBACK   33

◆ RETRO_ENVIRONMENT_SET_ROTATION

#define RETRO_ENVIRONMENT_SET_ROTATION
Value:
1 /* const unsigned * --
* Sets screen rotation of graphics.
* Is only implemented if rotation can be accelerated by hardware.
* Valid values are 0, 1, 2, 3, which rotates screen by 0, 90, 180,
* 270 degrees counter-clockwise respectively.
*/

◆ RETRO_ENVIRONMENT_SET_SERIALIZATION_QUIRKS

#define RETRO_ENVIRONMENT_SET_SERIALIZATION_QUIRKS   44

◆ RETRO_ENVIRONMENT_SET_SUBSYSTEM_INFO

#define RETRO_ENVIRONMENT_SET_SUBSYSTEM_INFO   34

◆ RETRO_ENVIRONMENT_SET_SUPPORT_ACHIEVEMENTS

#define RETRO_ENVIRONMENT_SET_SUPPORT_ACHIEVEMENTS   (42 | RETRO_ENVIRONMENT_EXPERIMENTAL)

◆ RETRO_ENVIRONMENT_SET_SUPPORT_NO_GAME

#define RETRO_ENVIRONMENT_SET_SUPPORT_NO_GAME   18

◆ RETRO_ENVIRONMENT_SET_SYSTEM_AV_INFO

#define RETRO_ENVIRONMENT_SET_SYSTEM_AV_INFO   32

◆ RETRO_ENVIRONMENT_SET_VARIABLES

#define RETRO_ENVIRONMENT_SET_VARIABLES   16

◆ RETRO_ENVIRONMENT_SHUTDOWN

#define RETRO_ENVIRONMENT_SHUTDOWN
Value:
7 /* N/A (NULL) --
* Requests the frontend to shutdown.
* Should only be used if game has a specific
* way to shutdown the game from a menu item or similar.
*/

◆ RETRO_HW_FRAME_BUFFER_VALID

#define RETRO_HW_FRAME_BUFFER_VALID   ((void*)-1)

◆ RETRO_MEMDESC_ALIGN_2

#define RETRO_MEMDESC_ALIGN_2   (1 << 16) /* All memory access in this area is aligned to their own size, or 2, whichever is smaller. */

◆ RETRO_MEMDESC_ALIGN_4

#define RETRO_MEMDESC_ALIGN_4   (2 << 16)

◆ RETRO_MEMDESC_ALIGN_8

#define RETRO_MEMDESC_ALIGN_8   (3 << 16)

◆ RETRO_MEMDESC_BIGENDIAN

#define RETRO_MEMDESC_BIGENDIAN   (1 << 1) /* The memory area contains big endian data. Default is little endian. */

◆ RETRO_MEMDESC_CONST

#define RETRO_MEMDESC_CONST   (1 << 0) /* The frontend will never change this memory area once retro_load_game has returned. */

◆ RETRO_MEMDESC_MINSIZE_2

#define RETRO_MEMDESC_MINSIZE_2   (1 << 24) /* All memory in this region is accessed at least 2 bytes at the time. */

◆ RETRO_MEMDESC_MINSIZE_4

#define RETRO_MEMDESC_MINSIZE_4   (2 << 24)

◆ RETRO_MEMDESC_MINSIZE_8

#define RETRO_MEMDESC_MINSIZE_8   (3 << 24)

◆ RETRO_MEMDESC_SAVE_RAM

#define RETRO_MEMDESC_SAVE_RAM   (1 << 3) /* The memory area is save RAM. This RAM is usually found on a game cartridge, backed up by a battery. */

◆ RETRO_MEMDESC_SYSTEM_RAM

#define RETRO_MEMDESC_SYSTEM_RAM   (1 << 2) /* The memory area is system RAM. This is main RAM of the gaming system. */

◆ RETRO_MEMDESC_VIDEO_RAM

#define RETRO_MEMDESC_VIDEO_RAM   (1 << 4) /* The memory area is video RAM (VRAM) */

◆ RETRO_MEMORY_ACCESS_READ

#define RETRO_MEMORY_ACCESS_READ   (1 << 1)

◆ RETRO_MEMORY_ACCESS_WRITE

#define RETRO_MEMORY_ACCESS_WRITE   (1 << 0)

◆ RETRO_MEMORY_MASK

#define RETRO_MEMORY_MASK   0xff

◆ RETRO_MEMORY_RTC

#define RETRO_MEMORY_RTC   1

◆ RETRO_MEMORY_SAVE_RAM

#define RETRO_MEMORY_SAVE_RAM   0

◆ RETRO_MEMORY_SYSTEM_RAM

#define RETRO_MEMORY_SYSTEM_RAM   2

◆ RETRO_MEMORY_TYPE_CACHED

#define RETRO_MEMORY_TYPE_CACHED   (1 << 0)

◆ RETRO_MEMORY_VIDEO_RAM

#define RETRO_MEMORY_VIDEO_RAM   3

◆ RETRO_REGION_NTSC

#define RETRO_REGION_NTSC   0

◆ RETRO_REGION_PAL

#define RETRO_REGION_PAL   1

◆ RETRO_SENSOR_ACCELEROMETER_X

#define RETRO_SENSOR_ACCELEROMETER_X   0

◆ RETRO_SENSOR_ACCELEROMETER_Y

#define RETRO_SENSOR_ACCELEROMETER_Y   1

◆ RETRO_SENSOR_ACCELEROMETER_Z

#define RETRO_SENSOR_ACCELEROMETER_Z   2

◆ RETRO_SERIALIZATION_QUIRK_CORE_VARIABLE_SIZE

#define RETRO_SERIALIZATION_QUIRK_CORE_VARIABLE_SIZE   (1 << 2)

◆ RETRO_SERIALIZATION_QUIRK_ENDIAN_DEPENDENT

#define RETRO_SERIALIZATION_QUIRK_ENDIAN_DEPENDENT   (1 << 5)

◆ RETRO_SERIALIZATION_QUIRK_FRONT_VARIABLE_SIZE

#define RETRO_SERIALIZATION_QUIRK_FRONT_VARIABLE_SIZE   (1 << 3)

◆ RETRO_SERIALIZATION_QUIRK_INCOMPLETE

#define RETRO_SERIALIZATION_QUIRK_INCOMPLETE   (1 << 0)

◆ RETRO_SERIALIZATION_QUIRK_MUST_INITIALIZE

#define RETRO_SERIALIZATION_QUIRK_MUST_INITIALIZE   (1 << 1)

◆ RETRO_SERIALIZATION_QUIRK_PLATFORM_DEPENDENT

#define RETRO_SERIALIZATION_QUIRK_PLATFORM_DEPENDENT   (1 << 6)

◆ RETRO_SERIALIZATION_QUIRK_SINGLE_SESSION

#define RETRO_SERIALIZATION_QUIRK_SINGLE_SESSION   (1 << 4)

◆ RETRO_SIMD_AES

#define RETRO_SIMD_AES   (1 << 15)

◆ RETRO_SIMD_ASIMD

#define RETRO_SIMD_ASIMD   (1 << 21)

◆ RETRO_SIMD_AVX

#define RETRO_SIMD_AVX   (1 << 4)

◆ RETRO_SIMD_AVX2

#define RETRO_SIMD_AVX2   (1 << 12)

◆ RETRO_SIMD_CMOV

#define RETRO_SIMD_CMOV   (1 << 20)

◆ RETRO_SIMD_MMX

#define RETRO_SIMD_MMX   (1 << 8)

◆ RETRO_SIMD_MMXEXT

#define RETRO_SIMD_MMXEXT   (1 << 9)

◆ RETRO_SIMD_MOVBE

#define RETRO_SIMD_MOVBE   (1 << 19)

◆ RETRO_SIMD_NEON

#define RETRO_SIMD_NEON   (1 << 5)

◆ RETRO_SIMD_POPCNT

#define RETRO_SIMD_POPCNT   (1 << 18)

◆ RETRO_SIMD_PS

#define RETRO_SIMD_PS   (1 << 14)

◆ RETRO_SIMD_SSE

#define RETRO_SIMD_SSE   (1 << 0)

◆ RETRO_SIMD_SSE2

#define RETRO_SIMD_SSE2   (1 << 1)

◆ RETRO_SIMD_SSE3

#define RETRO_SIMD_SSE3   (1 << 6)

◆ RETRO_SIMD_SSE4

#define RETRO_SIMD_SSE4   (1 << 10)

◆ RETRO_SIMD_SSE42

#define RETRO_SIMD_SSE42   (1 << 11)

◆ RETRO_SIMD_SSSE3

#define RETRO_SIMD_SSSE3   (1 << 7)

◆ RETRO_SIMD_VFPU

#define RETRO_SIMD_VFPU   (1 << 13)

◆ RETRO_SIMD_VFPV3

#define RETRO_SIMD_VFPV3   (1 << 16)

◆ RETRO_SIMD_VFPV4

#define RETRO_SIMD_VFPV4   (1 << 17)

◆ RETRO_SIMD_VMX

#define RETRO_SIMD_VMX   (1 << 2)

◆ RETRO_SIMD_VMX128

#define RETRO_SIMD_VMX128   (1 << 3)

◆ RETRO_VFS_FILE_ACCESS_HINT_FREQUENT_ACCESS

#define RETRO_VFS_FILE_ACCESS_HINT_FREQUENT_ACCESS   (1 << 0)

◆ RETRO_VFS_FILE_ACCESS_HINT_NONE

#define RETRO_VFS_FILE_ACCESS_HINT_NONE   (0)

◆ RETRO_VFS_FILE_ACCESS_READ

#define RETRO_VFS_FILE_ACCESS_READ   (1 << 0) /* Read only mode */

◆ RETRO_VFS_FILE_ACCESS_READ_WRITE

#define RETRO_VFS_FILE_ACCESS_READ_WRITE   (RETRO_VFS_FILE_ACCESS_READ | RETRO_VFS_FILE_ACCESS_WRITE) /* Read-write mode, discard contents and overwrites existing file unless RETRO_VFS_FILE_ACCESS_UPDATE is also specified*/

◆ RETRO_VFS_FILE_ACCESS_UPDATE_EXISTING

#define RETRO_VFS_FILE_ACCESS_UPDATE_EXISTING   (1 << 2) /* Prevents discarding content of existing files opened for writing */

◆ RETRO_VFS_FILE_ACCESS_WRITE

#define RETRO_VFS_FILE_ACCESS_WRITE   (1 << 1) /* Write only mode, discard contents and overwrites existing file unless RETRO_VFS_FILE_ACCESS_UPDATE is also specified */

◆ RETRO_VFS_SEEK_POSITION_CURRENT

#define RETRO_VFS_SEEK_POSITION_CURRENT   1

◆ RETRO_VFS_SEEK_POSITION_END

#define RETRO_VFS_SEEK_POSITION_END   2

◆ RETRO_VFS_SEEK_POSITION_START

#define RETRO_VFS_SEEK_POSITION_START   0

Typedef Documentation

◆ info

typedef const struct retro_game_info* info

◆ retro_add_image_index_t

typedef bool(RETRO_CALLCONV * retro_add_image_index_t) (void)

◆ retro_audio_callback_t

typedef void(RETRO_CALLCONV * retro_audio_callback_t) (void)

◆ retro_audio_sample_batch_t

typedef size_t(RETRO_CALLCONV * retro_audio_sample_batch_t) (const int16_t *data, size_t frames)

◆ retro_audio_sample_t

typedef void(RETRO_CALLCONV * retro_audio_sample_t) (int16_t left, int16_t right)

◆ retro_audio_set_state_callback_t

typedef void(RETRO_CALLCONV * retro_audio_set_state_callback_t) (bool enabled)

◆ retro_camera_frame_opengl_texture_t

typedef void(RETRO_CALLCONV * retro_camera_frame_opengl_texture_t) (unsigned texture_id, unsigned texture_target, const float *affine)

◆ retro_camera_frame_raw_framebuffer_t

typedef void(RETRO_CALLCONV * retro_camera_frame_raw_framebuffer_t) (const uint32_t *buffer, unsigned width, unsigned height, size_t pitch)

◆ retro_camera_lifetime_status_t

typedef void(RETRO_CALLCONV * retro_camera_lifetime_status_t) (void)

◆ retro_camera_start_t

typedef bool(RETRO_CALLCONV * retro_camera_start_t) (void)

◆ retro_camera_stop_t

typedef void(RETRO_CALLCONV * retro_camera_stop_t) (void)

◆ retro_environment_t

typedef bool(RETRO_CALLCONV * retro_environment_t) (unsigned cmd, void *data)

◆ retro_frame_time_callback_t

typedef void(RETRO_CALLCONV * retro_frame_time_callback_t) (retro_usec_t usec)

◆ retro_get_cpu_features_t

typedef uint64_t(RETRO_CALLCONV * retro_get_cpu_features_t) (void)

◆ retro_get_eject_state_t

typedef bool(RETRO_CALLCONV * retro_get_eject_state_t) (void)

◆ retro_get_image_index_t

typedef unsigned(RETRO_CALLCONV * retro_get_image_index_t) (void)

◆ retro_get_num_images_t

typedef unsigned(RETRO_CALLCONV * retro_get_num_images_t) (void)

◆ retro_get_proc_address_t

typedef retro_proc_address_t(RETRO_CALLCONV * retro_get_proc_address_t) (const char *sym)

◆ retro_hw_context_reset_t

typedef void(RETRO_CALLCONV * retro_hw_context_reset_t) (void)

◆ retro_hw_get_current_framebuffer_t

typedef uintptr_t(RETRO_CALLCONV * retro_hw_get_current_framebuffer_t) (void)

◆ retro_hw_get_proc_address_t

typedef retro_proc_address_t(RETRO_CALLCONV * retro_hw_get_proc_address_t) (const char *sym)

◆ retro_input_poll_t

typedef void(RETRO_CALLCONV * retro_input_poll_t) (void)

◆ retro_input_state_t

typedef int16_t(RETRO_CALLCONV * retro_input_state_t) (unsigned port, unsigned device, unsigned index, unsigned id)

◆ retro_keyboard_event_t

typedef void(RETRO_CALLCONV * retro_keyboard_event_t) (bool down, unsigned keycode, uint32_t character, uint16_t key_modifiers)

◆ retro_location_get_position_t

typedef bool(RETRO_CALLCONV * retro_location_get_position_t) (double *lat, double *lon, double *horiz_accuracy, double *vert_accuracy)

◆ retro_location_lifetime_status_t

typedef void(RETRO_CALLCONV * retro_location_lifetime_status_t) (void)

◆ retro_location_set_interval_t

typedef void(RETRO_CALLCONV * retro_location_set_interval_t) (unsigned interval_ms, unsigned interval_distance)

◆ retro_location_start_t

typedef bool(RETRO_CALLCONV * retro_location_start_t) (void)

◆ retro_location_stop_t

typedef void(RETRO_CALLCONV * retro_location_stop_t) (void)

◆ retro_log_printf_t

typedef void(RETRO_CALLCONV * retro_log_printf_t) (enum retro_log_level level, const char *fmt,...)

◆ retro_midi_flush_t

typedef bool(RETRO_CALLCONV * retro_midi_flush_t) (void)

◆ retro_midi_input_enabled_t

typedef bool(RETRO_CALLCONV * retro_midi_input_enabled_t) (void)

◆ retro_midi_output_enabled_t

typedef bool(RETRO_CALLCONV * retro_midi_output_enabled_t) (void)

◆ retro_midi_read_t

typedef bool(RETRO_CALLCONV * retro_midi_read_t) (uint8_t *byte)

◆ retro_midi_write_t

typedef bool(RETRO_CALLCONV * retro_midi_write_t) (uint8_t byte, uint32_t delta_time)

◆ retro_perf_get_counter_t

typedef retro_perf_tick_t(RETRO_CALLCONV * retro_perf_get_counter_t) (void)

◆ retro_perf_get_time_usec_t

typedef retro_time_t(RETRO_CALLCONV * retro_perf_get_time_usec_t) (void)

◆ retro_perf_log_t

typedef void(RETRO_CALLCONV * retro_perf_log_t) (void)

◆ retro_perf_register_t

typedef void(RETRO_CALLCONV * retro_perf_register_t) (struct retro_perf_counter *counter)

◆ retro_perf_start_t

typedef void(RETRO_CALLCONV * retro_perf_start_t) (struct retro_perf_counter *counter)

◆ retro_perf_stop_t

typedef void(RETRO_CALLCONV * retro_perf_stop_t) (struct retro_perf_counter *counter)

◆ retro_perf_tick_t

◆ retro_proc_address_t

typedef void(RETRO_CALLCONV * retro_proc_address_t) (void)

◆ retro_sensor_get_input_t

typedef float(RETRO_CALLCONV * retro_sensor_get_input_t) (unsigned port, unsigned id)

◆ retro_set_eject_state_t

typedef bool(RETRO_CALLCONV * retro_set_eject_state_t) (bool ejected)

◆ retro_set_image_index_t

typedef bool(RETRO_CALLCONV * retro_set_image_index_t) (unsigned index)

◆ retro_set_led_state_t

typedef void(RETRO_CALLCONV * retro_set_led_state_t) (int led, int state)

◆ retro_set_rumble_state_t

typedef bool(RETRO_CALLCONV * retro_set_rumble_state_t) (unsigned port, enum retro_rumble_effect effect, uint16_t strength)

◆ retro_set_sensor_state_t

typedef bool(RETRO_CALLCONV * retro_set_sensor_state_t) (unsigned port, enum retro_sensor_action action, unsigned rate)

◆ retro_time_t

◆ retro_usec_t

◆ retro_vfs_close_t

typedef int(RETRO_CALLCONV * retro_vfs_close_t) (struct retro_vfs_file_handle *stream)

◆ retro_vfs_flush_t

typedef int(RETRO_CALLCONV * retro_vfs_flush_t) (struct retro_vfs_file_handle *stream)

◆ retro_vfs_get_path_t

typedef const char*(RETRO_CALLCONV * retro_vfs_get_path_t) (struct retro_vfs_file_handle *stream)

◆ retro_vfs_open_t

typedef struct retro_vfs_file_handle* RETRO_CALLCONV* retro_vfs_open_t(const char *path, unsigned mode, unsigned hints)

◆ retro_vfs_read_t

typedef int64_t(RETRO_CALLCONV * retro_vfs_read_t) (struct retro_vfs_file_handle *stream, void *s, uint64_t len)

◆ retro_vfs_remove_t

typedef int(RETRO_CALLCONV * retro_vfs_remove_t) (const char *path)

◆ retro_vfs_rename_t

typedef int(RETRO_CALLCONV * retro_vfs_rename_t) (const char *old_path, const char *new_path)

◆ retro_vfs_seek_t

typedef int64_t(RETRO_CALLCONV * retro_vfs_seek_t) (struct retro_vfs_file_handle *stream, int64_t offset, int seek_position)

◆ retro_vfs_size_t

typedef int64_t(RETRO_CALLCONV * retro_vfs_size_t) (struct retro_vfs_file_handle *stream)

◆ retro_vfs_tell_t

typedef int64_t(RETRO_CALLCONV * retro_vfs_tell_t) (struct retro_vfs_file_handle *stream)

◆ retro_vfs_truncate_t

typedef int64_t(RETRO_CALLCONV * retro_vfs_truncate_t) (struct retro_vfs_file_handle *stream, int64_t length)

◆ retro_vfs_write_t

typedef int64_t(RETRO_CALLCONV * retro_vfs_write_t) (struct retro_vfs_file_handle *stream, const void *s, uint64_t len)

◆ retro_video_refresh_t

typedef void(RETRO_CALLCONV * retro_video_refresh_t) (const void *data, unsigned width, unsigned height, size_t pitch)

Enumeration Type Documentation

◆ retro_camera_buffer

Enumerator
RETRO_CAMERA_BUFFER_OPENGL_TEXTURE 
RETRO_CAMERA_BUFFER_RAW_FRAMEBUFFER 
RETRO_CAMERA_BUFFER_DUMMY 

◆ retro_hw_context_type

Enumerator
RETRO_HW_CONTEXT_NONE 
RETRO_HW_CONTEXT_OPENGL 
RETRO_HW_CONTEXT_OPENGLES2 
RETRO_HW_CONTEXT_OPENGL_CORE 
RETRO_HW_CONTEXT_OPENGLES3 
RETRO_HW_CONTEXT_OPENGLES_VERSION 
RETRO_HW_CONTEXT_VULKAN 
RETRO_HW_CONTEXT_DIRECT3D 
RETRO_HW_CONTEXT_DUMMY 

◆ retro_hw_render_context_negotiation_interface_type

Enumerator
RETRO_HW_RENDER_CONTEXT_NEGOTIATION_INTERFACE_VULKAN 
RETRO_HW_RENDER_CONTEXT_NEGOTIATION_INTERFACE_DUMMY 

◆ retro_hw_render_interface_type

Enumerator
RETRO_HW_RENDER_INTERFACE_VULKAN 
RETRO_HW_RENDER_INTERFACE_D3D9 
RETRO_HW_RENDER_INTERFACE_D3D10 
RETRO_HW_RENDER_INTERFACE_D3D11 
RETRO_HW_RENDER_INTERFACE_D3D12 
RETRO_HW_RENDER_INTERFACE_DUMMY 

◆ retro_key

enum retro_key
Enumerator
RETROK_UNKNOWN 
RETROK_FIRST 
RETROK_BACKSPACE 
RETROK_TAB 
RETROK_CLEAR 
RETROK_RETURN 
RETROK_PAUSE 
RETROK_ESCAPE 
RETROK_SPACE 
RETROK_EXCLAIM 
RETROK_QUOTEDBL 
RETROK_HASH 
RETROK_DOLLAR 
RETROK_AMPERSAND 
RETROK_QUOTE 
RETROK_LEFTPAREN 
RETROK_RIGHTPAREN 
RETROK_ASTERISK 
RETROK_PLUS 
RETROK_COMMA 
RETROK_MINUS 
RETROK_PERIOD 
RETROK_SLASH 
RETROK_0 
RETROK_1 
RETROK_2 
RETROK_3 
RETROK_4 
RETROK_5 
RETROK_6 
RETROK_7 
RETROK_8 
RETROK_9 
RETROK_COLON 
RETROK_SEMICOLON 
RETROK_LESS 
RETROK_EQUALS 
RETROK_GREATER 
RETROK_QUESTION 
RETROK_AT 
RETROK_LEFTBRACKET 
RETROK_BACKSLASH 
RETROK_RIGHTBRACKET 
RETROK_CARET 
RETROK_UNDERSCORE 
RETROK_BACKQUOTE 
RETROK_a 
RETROK_b 
RETROK_c 
RETROK_d 
RETROK_e 
RETROK_f 
RETROK_g 
RETROK_h 
RETROK_i 
RETROK_j 
RETROK_k 
RETROK_l 
RETROK_m 
RETROK_n 
RETROK_o 
RETROK_p 
RETROK_q 
RETROK_r 
RETROK_s 
RETROK_t 
RETROK_u 
RETROK_v 
RETROK_w 
RETROK_x 
RETROK_y 
RETROK_z 
RETROK_LEFTBRACE 
RETROK_BAR 
RETROK_RIGHTBRACE 
RETROK_TILDE 
RETROK_DELETE 
RETROK_KP0 
RETROK_KP1 
RETROK_KP2 
RETROK_KP3 
RETROK_KP4 
RETROK_KP5 
RETROK_KP6 
RETROK_KP7 
RETROK_KP8 
RETROK_KP9 
RETROK_KP_PERIOD 
RETROK_KP_DIVIDE 
RETROK_KP_MULTIPLY 
RETROK_KP_MINUS 
RETROK_KP_PLUS 
RETROK_KP_ENTER 
RETROK_KP_EQUALS 
RETROK_UP 
RETROK_DOWN 
RETROK_RIGHT 
RETROK_LEFT 
RETROK_INSERT 
RETROK_HOME 
RETROK_END 
RETROK_PAGEUP 
RETROK_PAGEDOWN 
RETROK_F1 
RETROK_F2 
RETROK_F3 
RETROK_F4 
RETROK_F5 
RETROK_F6 
RETROK_F7 
RETROK_F8 
RETROK_F9 
RETROK_F10 
RETROK_F11 
RETROK_F12 
RETROK_F13 
RETROK_F14 
RETROK_F15 
RETROK_NUMLOCK 
RETROK_CAPSLOCK 
RETROK_SCROLLOCK 
RETROK_RSHIFT 
RETROK_LSHIFT 
RETROK_RCTRL 
RETROK_LCTRL 
RETROK_RALT 
RETROK_LALT 
RETROK_RMETA 
RETROK_LMETA 
RETROK_LSUPER 
RETROK_RSUPER 
RETROK_MODE 
RETROK_COMPOSE 
RETROK_HELP 
RETROK_PRINT 
RETROK_SYSREQ 
RETROK_BREAK 
RETROK_MENU 
RETROK_POWER 
RETROK_EURO 
RETROK_UNDO 
RETROK_OEM_102 
RETROK_LAST 
RETROK_DUMMY 

◆ retro_language

Enumerator
RETRO_LANGUAGE_ENGLISH 
RETRO_LANGUAGE_JAPANESE 
RETRO_LANGUAGE_FRENCH 
RETRO_LANGUAGE_SPANISH 
RETRO_LANGUAGE_GERMAN 
RETRO_LANGUAGE_ITALIAN 
RETRO_LANGUAGE_DUTCH 
RETRO_LANGUAGE_PORTUGUESE_BRAZIL 
RETRO_LANGUAGE_PORTUGUESE_PORTUGAL 
RETRO_LANGUAGE_RUSSIAN 
RETRO_LANGUAGE_KOREAN 
RETRO_LANGUAGE_CHINESE_TRADITIONAL 
RETRO_LANGUAGE_CHINESE_SIMPLIFIED 
RETRO_LANGUAGE_ESPERANTO 
RETRO_LANGUAGE_POLISH 
RETRO_LANGUAGE_VIETNAMESE 
RETRO_LANGUAGE_ARABIC 
RETRO_LANGUAGE_GREEK 
RETRO_LANGUAGE_LAST 
RETRO_LANGUAGE_DUMMY 

◆ retro_log_level

Enumerator
RETRO_LOG_DEBUG 
RETRO_LOG_INFO 
RETRO_LOG_WARN 
RETRO_LOG_ERROR 
RETRO_LOG_DUMMY 

◆ retro_mod

enum retro_mod
Enumerator
RETROKMOD_NONE 
RETROKMOD_SHIFT 
RETROKMOD_CTRL 
RETROKMOD_ALT 
RETROKMOD_META 
RETROKMOD_NUMLOCK 
RETROKMOD_CAPSLOCK 
RETROKMOD_SCROLLOCK 
RETROKMOD_DUMMY 

◆ retro_pixel_format

Enumerator
RETRO_PIXEL_FORMAT_0RGB1555 
RETRO_PIXEL_FORMAT_XRGB8888 
RETRO_PIXEL_FORMAT_RGB565 
RETRO_PIXEL_FORMAT_UNKNOWN 

◆ retro_rumble_effect

Enumerator
RETRO_RUMBLE_STRONG 
RETRO_RUMBLE_WEAK 
RETRO_RUMBLE_DUMMY 

◆ retro_sensor_action

Enumerator
RETRO_SENSOR_ACCELEROMETER_ENABLE 
RETRO_SENSOR_ACCELEROMETER_DISABLE 
RETRO_SENSOR_DUMMY 

Function Documentation

◆ bool()

typedef bool ( RETRO_CALLCONV retro_replace_image_index_t)
Here is the caller graph for this function:

◆ retro_api_version()

RETRO_API unsigned retro_api_version ( void  )
Here is the caller graph for this function:

◆ retro_cheat_reset()

RETRO_API void retro_cheat_reset ( void  )
Here is the caller graph for this function:

◆ retro_cheat_set()

RETRO_API void retro_cheat_set ( unsigned  index,
bool  enabled,
const char *  code 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ retro_deinit()

RETRO_API void retro_deinit ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ retro_get_memory_data()

RETRO_API void* retro_get_memory_data ( unsigned  id)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ retro_get_memory_size()

RETRO_API size_t retro_get_memory_size ( unsigned  id)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ retro_get_region()

RETRO_API unsigned retro_get_region ( void  )
Here is the caller graph for this function:

◆ retro_get_system_av_info()

RETRO_API void retro_get_system_av_info ( struct retro_system_av_info info)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ retro_get_system_info()

RETRO_API void retro_get_system_info ( struct retro_system_info info)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ retro_init()

RETRO_API void retro_init ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ retro_load_game()

RETRO_API bool retro_load_game ( const struct retro_game_info game)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ retro_load_game_special()

RETRO_API bool retro_load_game_special ( unsigned  game_type,
const struct retro_game_info info,
size_t  num_info 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ retro_reset()

RETRO_API void retro_reset ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ retro_run()

RETRO_API void retro_run ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ retro_serialize()

RETRO_API bool retro_serialize ( void data,
size_t  size 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ retro_serialize_size()

RETRO_API size_t retro_serialize_size ( void  )
Here is the caller graph for this function:

◆ retro_set_audio_sample()

RETRO_API void retro_set_audio_sample ( retro_audio_sample_t  )
Here is the caller graph for this function:

◆ retro_set_audio_sample_batch()

RETRO_API void retro_set_audio_sample_batch ( retro_audio_sample_batch_t  )
Here is the caller graph for this function:

◆ retro_set_controller_port_device()

RETRO_API void retro_set_controller_port_device ( unsigned  port,
unsigned  device 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ retro_set_environment()

RETRO_API void retro_set_environment ( retro_environment_t  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ retro_set_input_poll()

RETRO_API void retro_set_input_poll ( retro_input_poll_t  )
Here is the caller graph for this function:

◆ retro_set_input_state()

RETRO_API void retro_set_input_state ( retro_input_state_t  )
Here is the caller graph for this function:

◆ retro_set_video_refresh()

RETRO_API void retro_set_video_refresh ( retro_video_refresh_t  )
Here is the caller graph for this function:

◆ retro_unload_game()

RETRO_API void retro_unload_game ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ retro_unserialize()

RETRO_API bool retro_unserialize ( const void data,
size_t  size 
)
Here is the call graph for this function:
Here is the caller graph for this function: