/* RetroArch - A frontend for libretro. * Copyright (C) 2010-2014 - Hans-Kristian Arntzen * Copyright (C) 2011-2014 - Daniel De Matteis * * RetroArch is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Found- * ation, either version 3 of the License, or (at your option) any later version. * * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along with RetroArch. * If not, see . */ #ifndef _MENU_COMMON_BACKEND_H #define _MENU_COMMON_BACKEND_H #include "../menu_common.h" typedef enum { // Shader stuff RGUI_SETTINGS_GENERAL_OPTIONS = RGUI_START_SCREEN + 1, RGUI_SETTINGS_VIDEO_OPTIONS, RGUI_SETTINGS_VIDEO_OPTIONS_FIRST, RGUI_SETTINGS_VIDEO_RESOLUTION, RGUI_SETTINGS_VIDEO_PAL60, RGUI_SETTINGS_VIDEO_FILTER, RGUI_SETTINGS_VIDEO_SOFT_FILTER, RGUI_SETTINGS_FLICKER_FILTER, RGUI_SETTINGS_SOFT_DISPLAY_FILTER, RGUI_SETTINGS_VIDEO_GAMMA, RGUI_SETTINGS_VIDEO_INTEGER_SCALE, RGUI_SETTINGS_VIDEO_ASPECT_RATIO, RGUI_SETTINGS_CUSTOM_VIEWPORT, RGUI_SETTINGS_CUSTOM_VIEWPORT_2, RGUI_SETTINGS_TOGGLE_FULLSCREEN, RGUI_SETTINGS_VIDEO_THREADED, RGUI_SETTINGS_VIDEO_ROTATION, RGUI_SETTINGS_VIDEO_VSYNC, RGUI_SETTINGS_VIDEO_HARD_SYNC, RGUI_SETTINGS_VIDEO_HARD_SYNC_FRAMES, RGUI_SETTINGS_VIDEO_BLACK_FRAME_INSERTION, RGUI_SETTINGS_VIDEO_SWAP_INTERVAL, RGUI_SETTINGS_VIDEO_WINDOW_SCALE_X, RGUI_SETTINGS_VIDEO_WINDOW_SCALE_Y, RGUI_SETTINGS_VIDEO_CROP_OVERSCAN, RGUI_SETTINGS_VIDEO_REFRESH_RATE_AUTO, RGUI_SETTINGS_VIDEO_MONITOR_INDEX, RGUI_SETTINGS_VIDEO_SOFTFILTER, RGUI_SETTINGS_VIDEO_OPTIONS_LAST, RGUI_SETTINGS_FONT_OPTIONS, RGUI_SETTINGS_FONT_ENABLE, RGUI_SETTINGS_FONT_SCALE, RGUI_SETTINGS_FONT_SIZE, RGUI_SETTINGS_LOAD_DUMMY_ON_CORE_SHUTDOWN, RGUI_SETTINGS_SHADER_OPTIONS, RGUI_SETTINGS_SHADER_FILTER, RGUI_SETTINGS_SHADER_PRESET, RGUI_SETTINGS_SHADER_APPLY, RGUI_SETTINGS_SHADER_PASSES, RGUI_SETTINGS_SHADER_0, RGUI_SETTINGS_SHADER_0_FILTER, RGUI_SETTINGS_SHADER_0_SCALE, RGUI_SETTINGS_SHADER_LAST = RGUI_SETTINGS_SHADER_0_SCALE + (3 * (GFX_MAX_SHADERS - 1)), RGUI_SETTINGS_SHADER_PRESET_SAVE, // settings options are done here too RGUI_SETTINGS_OPEN_FILEBROWSER, RGUI_SETTINGS_OPEN_FILEBROWSER_DEFERRED_CORE, RGUI_SETTINGS_OPEN_HISTORY, RGUI_SETTINGS_CORE, RGUI_SETTINGS_CORE_INFO, RGUI_SETTINGS_DEFERRED_CORE, RGUI_SETTINGS_CONFIG, RGUI_SETTINGS_SAVE_CONFIG, RGUI_SETTINGS_CORE_OPTIONS, RGUI_SETTINGS_AUDIO_OPTIONS, RGUI_SETTINGS_INPUT_OPTIONS, RGUI_SETTINGS_PATH_OPTIONS, RGUI_SETTINGS_OVERLAY_OPTIONS, RGUI_SETTINGS_NETPLAY_OPTIONS, RGUI_SETTINGS_PRIVACY_OPTIONS, RGUI_SETTINGS_OPTIONS, RGUI_SETTINGS_DRIVERS, RGUI_SETTINGS_REWIND_ENABLE, RGUI_SETTINGS_REWIND_GRANULARITY, RGUI_SETTINGS_CONFIG_SAVE_ON_EXIT, RGUI_SETTINGS_PER_CORE_CONFIG, RGUI_SETTINGS_SRAM_AUTOSAVE, RGUI_SETTINGS_SAVESTATE_SAVE, RGUI_SETTINGS_SAVESTATE_LOAD, RGUI_SETTINGS_DISK_OPTIONS, RGUI_SETTINGS_DISK_INDEX, RGUI_SETTINGS_DISK_APPEND, RGUI_SETTINGS_DRIVER_VIDEO, RGUI_SETTINGS_DRIVER_AUDIO, RGUI_SETTINGS_DRIVER_AUDIO_DEVICE, RGUI_SETTINGS_DRIVER_AUDIO_RESAMPLER, RGUI_SETTINGS_DRIVER_INPUT, RGUI_SETTINGS_DRIVER_CAMERA, RGUI_SETTINGS_DRIVER_LOCATION, RGUI_SETTINGS_DRIVER_MENU, RGUI_SETTINGS_SCREENSHOT, RGUI_SETTINGS_GPU_SCREENSHOT, RGUI_SETTINGS_SAVESTATE_AUTO_SAVE, RGUI_SETTINGS_SAVESTATE_AUTO_LOAD, RGUI_SETTINGS_BLOCK_SRAM_OVERWRITE, RGUI_SETTINGS_WINDOW_COMPOSITING_ENABLE, RGUI_SETTINGS_PAUSE_IF_WINDOW_FOCUS_LOST, RGUI_SCREENSHOT_DIR_PATH, RGUI_BROWSER_DIR_PATH, RGUI_FILTER_DIR_PATH, RGUI_SHADER_DIR_PATH, RGUI_SAVESTATE_DIR_PATH, RGUI_SAVEFILE_DIR_PATH, RGUI_LIBRETRO_DIR_PATH, RGUI_LIBRETRO_INFO_DIR_PATH, RGUI_CONFIG_DIR_PATH, RGUI_OVERLAY_DIR_PATH, RGUI_SYSTEM_DIR_PATH, RGUI_SETTINGS_RESTART_GAME, RGUI_SETTINGS_AUDIO_MUTE, RGUI_SETTINGS_AUDIO_CONTROL_RATE_DELTA, RGUI_SETTINGS_AUDIO_DSP_EFFECT, RGUI_SETTINGS_AUDIO_VOLUME, RGUI_SETTINGS_CUSTOM_BGM_CONTROL_ENABLE, RGUI_SETTINGS_ZIP_EXTRACT, RGUI_SETTINGS_DEBUG_TEXT, RGUI_SETTINGS_RESTART_EMULATOR, RGUI_SETTINGS_RESUME_GAME, RGUI_SETTINGS_QUIT_RARCH, RGUI_SETTINGS_NETPLAY_ENABLE, RGUI_SETTINGS_NETPLAY_MODE, RGUI_SETTINGS_NETPLAY_SPECTATOR_MODE_ENABLE, RGUI_SETTINGS_NETPLAY_HOST_IP_ADDRESS, RGUI_SETTINGS_NETPLAY_TCP_UDP_PORT, RGUI_SETTINGS_NETPLAY_DELAY_FRAMES, RGUI_SETTINGS_NETPLAY_NICKNAME, RGUI_SETTINGS_PRIVACY_CAMERA_ALLOW, RGUI_SETTINGS_PRIVACY_LOCATION_ALLOW, RGUI_SETTINGS_OVERLAY_PRESET, RGUI_SETTINGS_OVERLAY_OPACITY, RGUI_SETTINGS_OVERLAY_SCALE, RGUI_SETTINGS_BIND_PLAYER, RGUI_SETTINGS_BIND_DEVICE, RGUI_SETTINGS_BIND_DEVICE_TYPE, RGUI_SETTINGS_BIND_ANALOG_MODE, RGUI_SETTINGS_DEVICE_AUTODETECT_ENABLE, // Match up with libretro order for simplicity. RGUI_SETTINGS_BIND_BEGIN, RGUI_SETTINGS_BIND_B = RGUI_SETTINGS_BIND_BEGIN, RGUI_SETTINGS_BIND_Y, RGUI_SETTINGS_BIND_SELECT, RGUI_SETTINGS_BIND_START, RGUI_SETTINGS_BIND_UP, RGUI_SETTINGS_BIND_DOWN, RGUI_SETTINGS_BIND_LEFT, RGUI_SETTINGS_BIND_RIGHT, RGUI_SETTINGS_BIND_A, RGUI_SETTINGS_BIND_X, RGUI_SETTINGS_BIND_L, RGUI_SETTINGS_BIND_R, RGUI_SETTINGS_BIND_L2, RGUI_SETTINGS_BIND_R2, RGUI_SETTINGS_BIND_L3, RGUI_SETTINGS_BIND_R3, RGUI_SETTINGS_BIND_ANALOG_LEFT_X_PLUS, RGUI_SETTINGS_BIND_ANALOG_LEFT_X_MINUS, RGUI_SETTINGS_BIND_ANALOG_LEFT_Y_PLUS, RGUI_SETTINGS_BIND_ANALOG_LEFT_Y_MINUS, RGUI_SETTINGS_BIND_ANALOG_RIGHT_X_PLUS, RGUI_SETTINGS_BIND_ANALOG_RIGHT_X_MINUS, RGUI_SETTINGS_BIND_ANALOG_RIGHT_Y_PLUS, RGUI_SETTINGS_BIND_ANALOG_RIGHT_Y_MINUS, RGUI_SETTINGS_BIND_TURBO_ENABLE, RGUI_SETTINGS_BIND_FAST_FORWARD_KEY, RGUI_SETTINGS_BIND_FAST_FORWARD_HOLD_KEY, RGUI_SETTINGS_BIND_LOAD_STATE_KEY, RGUI_SETTINGS_BIND_SAVE_STATE_KEY, RGUI_SETTINGS_BIND_FULLSCREEN_TOGGLE_KEY, RGUI_SETTINGS_BIND_QUIT_KEY, RGUI_SETTINGS_BIND_STATE_SLOT_PLUS, RGUI_SETTINGS_BIND_STATE_SLOT_MINUS, RGUI_SETTINGS_BIND_REWIND, RGUI_SETTINGS_BIND_MOVIE_RECORD_TOGGLE, RGUI_SETTINGS_BIND_PAUSE_TOGGLE, RGUI_SETTINGS_BIND_FRAMEADVANCE, RGUI_SETTINGS_BIND_RESET, RGUI_SETTINGS_BIND_SHADER_NEXT, RGUI_SETTINGS_BIND_SHADER_PREV, RGUI_SETTINGS_BIND_CHEAT_INDEX_PLUS, RGUI_SETTINGS_BIND_CHEAT_INDEX_MINUS, RGUI_SETTINGS_BIND_CHEAT_TOGGLE, RGUI_SETTINGS_BIND_SCREENSHOT, RGUI_SETTINGS_BIND_DSP_CONFIG, RGUI_SETTINGS_BIND_MUTE, RGUI_SETTINGS_BIND_NETPLAY_FLIP, RGUI_SETTINGS_BIND_SLOWMOTION, RGUI_SETTINGS_BIND_ENABLE_HOTKEY, RGUI_SETTINGS_BIND_VOLUME_UP, RGUI_SETTINGS_BIND_VOLUME_DOWN, RGUI_SETTINGS_BIND_OVERLAY_NEXT, RGUI_SETTINGS_BIND_DISK_EJECT_TOGGLE, RGUI_SETTINGS_BIND_DISK_NEXT, RGUI_SETTINGS_BIND_GRAB_MOUSE_TOGGLE, RGUI_SETTINGS_BIND_MENU_TOGGLE, RGUI_SETTINGS_CUSTOM_BIND_MODE, RGUI_SETTINGS_CUSTOM_BIND, RGUI_SETTINGS_CUSTOM_BIND_KEYBOARD, RGUI_SETTINGS_CUSTOM_BIND_ALL, RGUI_SETTINGS_CUSTOM_BIND_DEFAULT_ALL, RGUI_SETTINGS_ONSCREEN_KEYBOARD_ENABLE, RGUI_SETTINGS_BIND_LAST = RGUI_SETTINGS_BIND_ANALOG_RIGHT_Y_MINUS, RGUI_SETTINGS_CORE_INFO_NONE = 0xffff, RGUI_SETTINGS_CORE_OPTION_NONE = 0xffff, RGUI_SETTINGS_CORE_OPTION_START = 0x10000 } rgui_settings_t; #ifdef GEKKO enum { GX_RESOLUTIONS_512_192 = 0, GX_RESOLUTIONS_598_200, GX_RESOLUTIONS_640_200, GX_RESOLUTIONS_384_224, GX_RESOLUTIONS_448_224, GX_RESOLUTIONS_480_224, GX_RESOLUTIONS_512_224, GX_RESOLUTIONS_576_224, GX_RESOLUTIONS_608_224, GX_RESOLUTIONS_640_224, GX_RESOLUTIONS_340_232, GX_RESOLUTIONS_512_232, GX_RESOLUTIONS_512_236, GX_RESOLUTIONS_336_240, GX_RESOLUTIONS_384_240, GX_RESOLUTIONS_512_240, GX_RESOLUTIONS_530_240, GX_RESOLUTIONS_640_240, GX_RESOLUTIONS_512_384, GX_RESOLUTIONS_598_400, GX_RESOLUTIONS_640_400, GX_RESOLUTIONS_384_448, GX_RESOLUTIONS_448_448, GX_RESOLUTIONS_480_448, GX_RESOLUTIONS_512_448, GX_RESOLUTIONS_576_448, GX_RESOLUTIONS_608_448, GX_RESOLUTIONS_640_448, GX_RESOLUTIONS_340_464, GX_RESOLUTIONS_512_464, GX_RESOLUTIONS_512_472, GX_RESOLUTIONS_384_480, GX_RESOLUTIONS_512_480, GX_RESOLUTIONS_530_480, GX_RESOLUTIONS_640_480, GX_RESOLUTIONS_LAST, }; #endif #endif