2012-04-21 21:13:50 +00:00
|
|
|
/* RetroArch - A frontend for libretro.
|
2014-01-01 00:50:59 +00:00
|
|
|
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
|
2015-01-07 16:46:50 +00:00
|
|
|
* Copyright (C) 2011-2015 - Daniel De Matteis
|
2015-08-30 22:55:34 +00:00
|
|
|
*
|
2012-04-21 21:13:50 +00:00
|
|
|
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
2010-12-22 14:58:43 +00:00
|
|
|
* 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.
|
|
|
|
*
|
2012-04-21 21:13:50 +00:00
|
|
|
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
2010-12-22 14:58:43 +00:00
|
|
|
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
|
* PURPOSE. See the GNU General Public License for more details.
|
|
|
|
*
|
2012-04-21 21:31:57 +00:00
|
|
|
* You should have received a copy of the GNU General Public License along with RetroArch.
|
2010-12-22 14:58:43 +00:00
|
|
|
* If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2011-01-05 19:09:12 +00:00
|
|
|
#ifndef __CONFIG_DEF_H
|
|
|
|
#define __CONFIG_DEF_H
|
2010-12-22 14:58:43 +00:00
|
|
|
|
2014-10-21 03:05:52 +00:00
|
|
|
#include <boolean.h>
|
2012-04-07 09:55:37 +00:00
|
|
|
#include "libretro.h"
|
2010-12-22 14:58:43 +00:00
|
|
|
#include "driver.h"
|
2015-11-29 00:15:40 +00:00
|
|
|
#include "gfx/video_driver.h"
|
2011-01-07 16:59:53 +00:00
|
|
|
|
|
|
|
#ifdef HAVE_CONFIG_H
|
2011-01-06 22:15:49 +00:00
|
|
|
#include "config.h"
|
2011-01-07 16:59:53 +00:00
|
|
|
#endif
|
|
|
|
|
2015-08-30 22:55:34 +00:00
|
|
|
enum
|
2012-06-19 22:43:41 +00:00
|
|
|
{
|
|
|
|
VIDEO_GL = 0,
|
|
|
|
VIDEO_XVIDEO,
|
|
|
|
VIDEO_SDL,
|
2014-08-22 22:15:44 +00:00
|
|
|
VIDEO_SDL2,
|
2012-06-19 22:43:41 +00:00
|
|
|
VIDEO_EXT,
|
|
|
|
VIDEO_WII,
|
|
|
|
VIDEO_XENON360,
|
2012-07-07 17:15:06 +00:00
|
|
|
VIDEO_XDK_D3D,
|
2015-04-01 22:27:55 +00:00
|
|
|
VIDEO_PSP1,
|
2015-08-30 18:47:17 +00:00
|
|
|
VIDEO_VITA2D,
|
2015-04-01 21:14:13 +00:00
|
|
|
VIDEO_CTR,
|
2012-10-26 19:09:30 +00:00
|
|
|
VIDEO_D3D9,
|
2012-09-24 19:19:07 +00:00
|
|
|
VIDEO_VG,
|
2012-06-19 22:43:41 +00:00
|
|
|
VIDEO_NULL,
|
2013-07-28 16:37:31 +00:00
|
|
|
VIDEO_OMAP,
|
2013-11-24 16:28:21 +00:00
|
|
|
VIDEO_EXYNOS,
|
2016-01-10 11:04:32 +00:00
|
|
|
VIDEO_SUNXI,
|
2015-03-13 04:59:52 +00:00
|
|
|
VIDEO_DISPMANX,
|
2012-06-19 22:43:41 +00:00
|
|
|
|
|
|
|
AUDIO_RSOUND,
|
|
|
|
AUDIO_OSS,
|
|
|
|
AUDIO_ALSA,
|
2013-01-04 19:58:34 +00:00
|
|
|
AUDIO_ALSATHREAD,
|
2012-06-19 22:43:41 +00:00
|
|
|
AUDIO_ROAR,
|
|
|
|
AUDIO_AL,
|
2012-10-18 03:45:21 +00:00
|
|
|
AUDIO_SL,
|
2012-06-19 22:43:41 +00:00
|
|
|
AUDIO_JACK,
|
|
|
|
AUDIO_SDL,
|
2014-08-22 22:15:44 +00:00
|
|
|
AUDIO_SDL2,
|
2012-06-19 22:43:41 +00:00
|
|
|
AUDIO_XAUDIO,
|
|
|
|
AUDIO_PULSE,
|
|
|
|
AUDIO_EXT,
|
|
|
|
AUDIO_DSOUND,
|
|
|
|
AUDIO_COREAUDIO,
|
|
|
|
AUDIO_PS3,
|
|
|
|
AUDIO_XENON360,
|
|
|
|
AUDIO_WII,
|
2013-08-28 04:03:25 +00:00
|
|
|
AUDIO_RWEBAUDIO,
|
2015-08-12 10:18:45 +00:00
|
|
|
AUDIO_PSP,
|
2015-04-01 21:14:13 +00:00
|
|
|
AUDIO_CTR,
|
2012-06-19 22:43:41 +00:00
|
|
|
AUDIO_NULL,
|
|
|
|
|
2014-07-18 17:11:53 +00:00
|
|
|
AUDIO_RESAMPLER_CC,
|
|
|
|
AUDIO_RESAMPLER_SINC,
|
2014-10-03 11:34:55 +00:00
|
|
|
AUDIO_RESAMPLER_NEAREST,
|
2014-07-18 17:11:53 +00:00
|
|
|
|
2012-10-16 17:46:31 +00:00
|
|
|
INPUT_ANDROID,
|
2012-06-19 22:43:41 +00:00
|
|
|
INPUT_SDL,
|
2014-08-22 22:15:44 +00:00
|
|
|
INPUT_SDL2,
|
2012-06-19 22:43:41 +00:00
|
|
|
INPUT_X,
|
2014-08-09 19:35:27 +00:00
|
|
|
INPUT_WAYLAND,
|
2012-09-30 09:26:26 +00:00
|
|
|
INPUT_DINPUT,
|
2012-06-19 22:43:41 +00:00
|
|
|
INPUT_PS3,
|
2012-11-23 01:40:03 +00:00
|
|
|
INPUT_PSP,
|
2015-04-01 21:14:13 +00:00
|
|
|
INPUT_CTR,
|
2012-06-19 22:43:41 +00:00
|
|
|
INPUT_XENON360,
|
|
|
|
INPUT_WII,
|
2012-07-07 17:56:46 +00:00
|
|
|
INPUT_XINPUT,
|
2013-12-07 13:13:40 +00:00
|
|
|
INPUT_UDEV,
|
2012-06-19 22:43:41 +00:00
|
|
|
INPUT_LINUXRAW,
|
2015-04-19 15:58:15 +00:00
|
|
|
INPUT_COCOA,
|
2013-03-18 22:56:07 +00:00
|
|
|
INPUT_QNX,
|
2013-09-11 00:21:48 +00:00
|
|
|
INPUT_RWEBINPUT,
|
2013-11-11 13:26:57 +00:00
|
|
|
INPUT_NULL,
|
|
|
|
|
2014-10-03 00:40:47 +00:00
|
|
|
JOYPAD_PS3,
|
2015-04-05 18:43:24 +00:00
|
|
|
JOYPAD_XINPUT,
|
2014-10-03 00:40:47 +00:00
|
|
|
JOYPAD_GX,
|
|
|
|
JOYPAD_XDK,
|
|
|
|
JOYPAD_PSP,
|
2015-04-01 21:14:13 +00:00
|
|
|
JOYPAD_CTR,
|
2014-10-03 00:40:47 +00:00
|
|
|
JOYPAD_DINPUT,
|
|
|
|
JOYPAD_UDEV,
|
|
|
|
JOYPAD_LINUXRAW,
|
|
|
|
JOYPAD_ANDROID,
|
|
|
|
JOYPAD_SDL,
|
2015-04-01 18:00:38 +00:00
|
|
|
JOYPAD_HID,
|
2014-10-03 00:40:47 +00:00
|
|
|
JOYPAD_QNX,
|
2014-10-27 13:45:28 +00:00
|
|
|
JOYPAD_NULL,
|
2014-10-03 00:40:47 +00:00
|
|
|
|
2013-11-11 13:26:57 +00:00
|
|
|
CAMERA_V4L2,
|
2013-11-13 00:48:36 +00:00
|
|
|
CAMERA_RWEBCAM,
|
2013-11-17 18:47:37 +00:00
|
|
|
CAMERA_ANDROID,
|
2015-04-19 18:46:49 +00:00
|
|
|
CAMERA_AVFOUNDATION,
|
2013-11-11 13:26:57 +00:00
|
|
|
CAMERA_NULL,
|
2013-11-12 23:27:31 +00:00
|
|
|
|
2013-12-19 00:51:51 +00:00
|
|
|
LOCATION_ANDROID,
|
2015-04-20 09:41:33 +00:00
|
|
|
LOCATION_CORELOCATION,
|
2014-08-14 00:15:48 +00:00
|
|
|
LOCATION_NULL,
|
2013-12-19 00:51:51 +00:00
|
|
|
|
2013-11-12 23:27:31 +00:00
|
|
|
OSK_PS3,
|
|
|
|
OSK_NULL,
|
2014-05-27 15:13:53 +00:00
|
|
|
|
|
|
|
MENU_RGUI,
|
|
|
|
MENU_RMENU,
|
|
|
|
MENU_RMENU_XUI,
|
2015-11-17 11:04:02 +00:00
|
|
|
MENU_MATERIALUI,
|
2014-10-08 23:21:22 +00:00
|
|
|
MENU_XMB,
|
2015-04-15 11:37:38 +00:00
|
|
|
|
|
|
|
RECORD_FFMPEG,
|
2015-06-26 15:46:13 +00:00
|
|
|
RECORD_NULL
|
2012-06-19 22:43:41 +00:00
|
|
|
};
|
2010-12-22 14:58:43 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
#ifdef GEKKO
|
|
|
|
#define MAX_GAMMA_SETTING 2
|
|
|
|
#else
|
|
|
|
#define MAX_GAMMA_SETTING 1
|
|
|
|
#endif
|
|
|
|
|
2012-10-31 21:12:02 +00:00
|
|
|
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES) || defined(__CELLOS_LV2__)
|
2010-12-29 19:50:50 +00:00
|
|
|
#define VIDEO_DEFAULT_DRIVER VIDEO_GL
|
2011-12-14 13:26:40 +00:00
|
|
|
#elif defined(GEKKO)
|
|
|
|
#define VIDEO_DEFAULT_DRIVER VIDEO_WII
|
2011-12-15 12:54:22 +00:00
|
|
|
#elif defined(XENON)
|
|
|
|
#define VIDEO_DEFAULT_DRIVER VIDEO_XENON360
|
2012-07-08 15:21:29 +00:00
|
|
|
#elif (defined(_XBOX1) || defined(_XBOX360)) && (defined(HAVE_D3D8) || defined(HAVE_D3D9))
|
2012-07-07 17:15:06 +00:00
|
|
|
#define VIDEO_DEFAULT_DRIVER VIDEO_XDK_D3D
|
2015-04-03 18:36:19 +00:00
|
|
|
#elif defined(HAVE_D3D9)
|
2012-10-26 19:09:30 +00:00
|
|
|
#define VIDEO_DEFAULT_DRIVER VIDEO_D3D9
|
2012-09-24 19:19:07 +00:00
|
|
|
#elif defined(HAVE_VG)
|
|
|
|
#define VIDEO_DEFAULT_DRIVER VIDEO_VG
|
2015-08-30 18:47:17 +00:00
|
|
|
#elif defined(HAVE_VITA2D)
|
2015-08-30 19:25:07 +00:00
|
|
|
#define VIDEO_DEFAULT_DRIVER VIDEO_VITA2D
|
2012-11-23 04:20:05 +00:00
|
|
|
#elif defined(PSP)
|
|
|
|
#define VIDEO_DEFAULT_DRIVER VIDEO_PSP1
|
2015-04-01 21:14:13 +00:00
|
|
|
#elif defined(_3DS)
|
|
|
|
#define VIDEO_DEFAULT_DRIVER VIDEO_CTR
|
2011-03-13 03:51:09 +00:00
|
|
|
#elif defined(HAVE_XVIDEO)
|
|
|
|
#define VIDEO_DEFAULT_DRIVER VIDEO_XVIDEO
|
2011-05-11 15:52:16 +00:00
|
|
|
#elif defined(HAVE_SDL)
|
|
|
|
#define VIDEO_DEFAULT_DRIVER VIDEO_SDL
|
2014-08-22 22:15:44 +00:00
|
|
|
#elif defined(HAVE_SDL2)
|
|
|
|
#define VIDEO_DEFAULT_DRIVER VIDEO_SDL2
|
2012-10-05 00:00:21 +00:00
|
|
|
#elif defined(HAVE_DYLIB) && !defined(ANDROID)
|
2011-05-11 15:52:16 +00:00
|
|
|
#define VIDEO_DEFAULT_DRIVER VIDEO_EXT
|
|
|
|
#else
|
2012-06-19 22:43:41 +00:00
|
|
|
#define VIDEO_DEFAULT_DRIVER VIDEO_NULL
|
2011-03-13 03:51:09 +00:00
|
|
|
#endif
|
2011-01-06 22:15:49 +00:00
|
|
|
|
2011-11-30 16:24:18 +00:00
|
|
|
#if defined(__CELLOS_LV2__)
|
|
|
|
#define AUDIO_DEFAULT_DRIVER AUDIO_PS3
|
2011-12-13 22:17:37 +00:00
|
|
|
#elif defined(XENON)
|
|
|
|
#define AUDIO_DEFAULT_DRIVER AUDIO_XENON360
|
2011-12-14 11:49:13 +00:00
|
|
|
#elif defined(GEKKO)
|
|
|
|
#define AUDIO_DEFAULT_DRIVER AUDIO_WII
|
2015-08-12 10:18:45 +00:00
|
|
|
#elif defined(PSP) || defined(VITA)
|
|
|
|
#define AUDIO_DEFAULT_DRIVER AUDIO_PSP
|
2015-04-01 21:14:13 +00:00
|
|
|
#elif defined(_3DS)
|
|
|
|
#define AUDIO_DEFAULT_DRIVER AUDIO_CTR
|
2013-01-04 19:58:34 +00:00
|
|
|
#elif defined(HAVE_ALSA) && defined(HAVE_VIDEOCORE)
|
|
|
|
#define AUDIO_DEFAULT_DRIVER AUDIO_ALSATHREAD
|
2011-11-30 16:24:18 +00:00
|
|
|
#elif defined(HAVE_ALSA)
|
2010-12-29 19:50:50 +00:00
|
|
|
#define AUDIO_DEFAULT_DRIVER AUDIO_ALSA
|
2011-01-29 00:15:09 +00:00
|
|
|
#elif defined(HAVE_PULSE)
|
|
|
|
#define AUDIO_DEFAULT_DRIVER AUDIO_PULSE
|
2011-01-27 13:43:46 +00:00
|
|
|
#elif defined(HAVE_OSS)
|
2011-01-06 22:15:49 +00:00
|
|
|
#define AUDIO_DEFAULT_DRIVER AUDIO_OSS
|
2011-01-27 13:43:46 +00:00
|
|
|
#elif defined(HAVE_JACK)
|
2011-01-06 22:15:49 +00:00
|
|
|
#define AUDIO_DEFAULT_DRIVER AUDIO_JACK
|
2011-08-08 15:27:52 +00:00
|
|
|
#elif defined(HAVE_COREAUDIO)
|
|
|
|
#define AUDIO_DEFAULT_DRIVER AUDIO_COREAUDIO
|
2015-10-03 05:21:33 +00:00
|
|
|
#elif defined(HAVE_XAUDIO)
|
|
|
|
#define AUDIO_DEFAULT_DRIVER AUDIO_XAUDIO
|
|
|
|
#elif defined(HAVE_DSOUND)
|
|
|
|
#define AUDIO_DEFAULT_DRIVER AUDIO_DSOUND
|
2011-01-27 13:43:46 +00:00
|
|
|
#elif defined(HAVE_AL)
|
2011-01-06 22:15:49 +00:00
|
|
|
#define AUDIO_DEFAULT_DRIVER AUDIO_AL
|
2012-10-18 03:45:21 +00:00
|
|
|
#elif defined(HAVE_SL)
|
|
|
|
#define AUDIO_DEFAULT_DRIVER AUDIO_SL
|
2013-08-28 04:03:25 +00:00
|
|
|
#elif defined(EMSCRIPTEN)
|
|
|
|
#define AUDIO_DEFAULT_DRIVER AUDIO_RWEBAUDIO
|
2011-08-04 16:52:00 +00:00
|
|
|
#elif defined(HAVE_SDL)
|
|
|
|
#define AUDIO_DEFAULT_DRIVER AUDIO_SDL
|
2014-08-22 22:15:44 +00:00
|
|
|
#elif defined(HAVE_SDL2)
|
|
|
|
#define AUDIO_DEFAULT_DRIVER AUDIO_SDL2
|
2011-01-29 22:53:38 +00:00
|
|
|
#elif defined(HAVE_RSOUND)
|
|
|
|
#define AUDIO_DEFAULT_DRIVER AUDIO_RSOUND
|
|
|
|
#elif defined(HAVE_ROAR)
|
|
|
|
#define AUDIO_DEFAULT_DRIVER AUDIO_ROAR
|
2012-10-05 00:00:21 +00:00
|
|
|
#elif defined(HAVE_DYLIB) && !defined(ANDROID)
|
2011-05-14 23:46:11 +00:00
|
|
|
#define AUDIO_DEFAULT_DRIVER AUDIO_EXT
|
2011-01-27 13:43:46 +00:00
|
|
|
#else
|
2012-06-19 22:43:41 +00:00
|
|
|
#define AUDIO_DEFAULT_DRIVER AUDIO_NULL
|
2011-01-06 22:15:49 +00:00
|
|
|
#endif
|
|
|
|
|
2014-07-18 17:11:53 +00:00
|
|
|
#ifdef PSP
|
|
|
|
#define AUDIO_DEFAULT_RESAMPLER_DRIVER AUDIO_RESAMPLER_CC
|
|
|
|
#else
|
|
|
|
#define AUDIO_DEFAULT_RESAMPLER_DRIVER AUDIO_RESAMPLER_SINC
|
|
|
|
#endif
|
|
|
|
|
2015-04-15 11:37:38 +00:00
|
|
|
#if defined(HAVE_FFMPEG)
|
|
|
|
#define RECORD_DEFAULT_DRIVER RECORD_FFMPEG
|
|
|
|
#else
|
|
|
|
#define RECORD_DEFAULT_DRIVER RECORD_NULL
|
|
|
|
#endif
|
|
|
|
|
2011-12-14 15:53:13 +00:00
|
|
|
#if defined(XENON)
|
|
|
|
#define INPUT_DEFAULT_DRIVER INPUT_XENON360
|
2012-07-07 17:56:46 +00:00
|
|
|
#elif defined(_XBOX360) || defined(_XBOX) || defined(HAVE_XINPUT2) || defined(HAVE_XINPUT_XBOX1)
|
|
|
|
#define INPUT_DEFAULT_DRIVER INPUT_XINPUT
|
2012-10-16 17:46:31 +00:00
|
|
|
#elif defined(ANDROID)
|
|
|
|
#define INPUT_DEFAULT_DRIVER INPUT_ANDROID
|
2013-09-11 00:21:48 +00:00
|
|
|
#elif defined(EMSCRIPTEN)
|
|
|
|
#define INPUT_DEFAULT_DRIVER INPUT_RWEBINPUT
|
2015-04-19 19:11:15 +00:00
|
|
|
#elif defined(_WIN32)
|
|
|
|
#define INPUT_DEFAULT_DRIVER INPUT_DINPUT
|
2011-11-30 16:24:18 +00:00
|
|
|
#elif defined(__CELLOS_LV2__)
|
|
|
|
#define INPUT_DEFAULT_DRIVER INPUT_PS3
|
2015-08-30 22:55:34 +00:00
|
|
|
#elif defined(PSP) || defined(VITA)
|
2012-11-23 01:40:03 +00:00
|
|
|
#define INPUT_DEFAULT_DRIVER INPUT_PSP
|
2015-04-01 21:14:13 +00:00
|
|
|
#elif defined(_3DS)
|
|
|
|
#define INPUT_DEFAULT_DRIVER INPUT_CTR
|
2011-12-14 12:20:22 +00:00
|
|
|
#elif defined(GEKKO)
|
|
|
|
#define INPUT_DEFAULT_DRIVER INPUT_WII
|
2013-12-07 13:13:40 +00:00
|
|
|
#elif defined(HAVE_UDEV)
|
|
|
|
#define INPUT_DEFAULT_DRIVER INPUT_UDEV
|
2014-01-03 19:18:50 +00:00
|
|
|
#elif defined(__linux__) && !defined(ANDROID)
|
2013-09-19 16:33:05 +00:00
|
|
|
#define INPUT_DEFAULT_DRIVER INPUT_LINUXRAW
|
|
|
|
#elif defined(HAVE_X11)
|
2011-03-13 03:51:09 +00:00
|
|
|
#define INPUT_DEFAULT_DRIVER INPUT_X
|
2014-08-09 19:35:27 +00:00
|
|
|
#elif defined(HAVE_WAYLAND)
|
|
|
|
#define INPUT_DEFAULT_DRIVER INPUT_WAYLAND
|
2015-04-19 15:58:15 +00:00
|
|
|
#elif defined(HAVE_COCOA) || defined(HAVE_COCOATOUCH)
|
|
|
|
#define INPUT_DEFAULT_DRIVER INPUT_COCOA
|
2014-05-18 09:04:30 +00:00
|
|
|
#elif defined(__QNX__)
|
2013-03-18 22:56:07 +00:00
|
|
|
#define INPUT_DEFAULT_DRIVER INPUT_QNX
|
2014-01-03 19:18:50 +00:00
|
|
|
#elif defined(HAVE_SDL)
|
|
|
|
#define INPUT_DEFAULT_DRIVER INPUT_SDL
|
2014-08-22 22:15:44 +00:00
|
|
|
#elif defined(HAVE_SDL2)
|
|
|
|
#define INPUT_DEFAULT_DRIVER INPUT_SDL2
|
2011-05-11 15:52:16 +00:00
|
|
|
#else
|
2012-06-19 22:43:41 +00:00
|
|
|
#define INPUT_DEFAULT_DRIVER INPUT_NULL
|
2011-03-13 03:51:09 +00:00
|
|
|
#endif
|
2010-12-22 14:58:43 +00:00
|
|
|
|
2014-10-03 00:40:47 +00:00
|
|
|
#if defined(__CELLOS_LV2__)
|
|
|
|
#define JOYPAD_DEFAULT_DRIVER JOYPAD_PS3
|
2015-04-05 18:43:24 +00:00
|
|
|
#elif defined(HAVE_XINPUT)
|
|
|
|
#define JOYPAD_DEFAULT_DRIVER JOYPAD_XINPUT
|
2014-10-03 00:40:47 +00:00
|
|
|
#elif defined(GEKKO)
|
|
|
|
#define JOYPAD_DEFAULT_DRIVER JOYPAD_GX
|
|
|
|
#elif defined(_XBOX)
|
|
|
|
#define JOYPAD_DEFAULT_DRIVER JOYPAD_XDK
|
2015-08-30 22:55:34 +00:00
|
|
|
#elif defined(PSP) || defined(VITA)
|
2014-10-03 00:40:47 +00:00
|
|
|
#define JOYPAD_DEFAULT_DRIVER JOYPAD_PSP
|
2015-04-01 21:14:13 +00:00
|
|
|
#elif defined(_3DS)
|
|
|
|
#define JOYPAD_DEFAULT_DRIVER JOYPAD_CTR
|
2014-10-03 00:40:47 +00:00
|
|
|
#elif defined(HAVE_DINPUT)
|
|
|
|
#define JOYPAD_DEFAULT_DRIVER JOYPAD_DINPUT
|
|
|
|
#elif defined(HAVE_UDEV)
|
|
|
|
#define JOYPAD_DEFAULT_DRIVER JOYPAD_UDEV
|
|
|
|
#elif defined(__linux) && !defined(ANDROID)
|
|
|
|
#define JOYPAD_DEFAULT_DRIVER JOYPAD_LINUXRAW
|
|
|
|
#elif defined(ANDROID)
|
|
|
|
#define JOYPAD_DEFAULT_DRIVER JOYPAD_ANDROID
|
|
|
|
#elif defined(HAVE_SDL) || defined(HAVE_SDL2)
|
|
|
|
#define JOYPAD_DEFAULT_DRIVER JOYPAD_SDL
|
2015-04-01 18:00:38 +00:00
|
|
|
#elif defined(HAVE_HID)
|
|
|
|
#define JOYPAD_DEFAULT_DRIVER JOYPAD_HID
|
2014-10-03 00:40:47 +00:00
|
|
|
#elif defined(__QNX__)
|
|
|
|
#define JOYPAD_DEFAULT_DRIVER JOYPAD_QNX
|
|
|
|
#else
|
|
|
|
#define JOYPAD_DEFAULT_DRIVER JOYPAD_NULL
|
|
|
|
#endif
|
|
|
|
|
2013-11-11 13:26:57 +00:00
|
|
|
#if defined(HAVE_V4L2)
|
|
|
|
#define CAMERA_DEFAULT_DRIVER CAMERA_V4L2
|
2013-11-13 00:48:36 +00:00
|
|
|
#elif defined(EMSCRIPTEN)
|
|
|
|
#define CAMERA_DEFAULT_DRIVER CAMERA_RWEBCAM
|
2013-11-17 18:47:37 +00:00
|
|
|
#elif defined(ANDROID)
|
|
|
|
#define CAMERA_DEFAULT_DRIVER CAMERA_ANDROID
|
2015-04-20 12:14:45 +00:00
|
|
|
#elif defined(HAVE_AVFOUNDATION) && (defined(HAVE_COCOA) || defined(HAVE_COCOATOUCH))
|
2015-04-19 18:46:49 +00:00
|
|
|
#define CAMERA_DEFAULT_DRIVER CAMERA_AVFOUNDATION
|
2013-11-11 13:26:57 +00:00
|
|
|
#else
|
|
|
|
#define CAMERA_DEFAULT_DRIVER CAMERA_NULL
|
|
|
|
#endif
|
|
|
|
|
2013-12-19 00:51:51 +00:00
|
|
|
#if defined(ANDROID)
|
|
|
|
#define LOCATION_DEFAULT_DRIVER LOCATION_ANDROID
|
2015-04-20 12:14:45 +00:00
|
|
|
#elif defined(HAVE_CORELOCATION) && (defined(HAVE_COCOA) || defined(HAVE_COCOATOUCH))
|
2015-04-20 09:41:33 +00:00
|
|
|
#define LOCATION_DEFAULT_DRIVER LOCATION_CORELOCATION
|
2014-08-14 00:15:48 +00:00
|
|
|
#else
|
|
|
|
#define LOCATION_DEFAULT_DRIVER LOCATION_NULL
|
2013-12-19 00:51:51 +00:00
|
|
|
#endif
|
|
|
|
|
2013-11-12 23:27:31 +00:00
|
|
|
#if defined(__CELLOS_LV2__)
|
|
|
|
#define OSK_DEFAULT_DRIVER OSK_PS3
|
|
|
|
#else
|
|
|
|
#define OSK_DEFAULT_DRIVER OSK_NULL
|
|
|
|
#endif
|
|
|
|
|
2015-04-12 01:18:37 +00:00
|
|
|
#if defined(HAVE_RMENU)
|
2014-05-27 15:13:53 +00:00
|
|
|
#define MENU_DEFAULT_DRIVER MENU_RMENU
|
|
|
|
#elif defined(HAVE_RMENU_XUI)
|
|
|
|
#define MENU_DEFAULT_DRIVER MENU_RMENU_XUI
|
2015-07-14 14:21:08 +00:00
|
|
|
#elif defined(IOS) || defined(ANDROID) || defined(__CELLOS_LV2__)
|
2015-11-17 11:04:02 +00:00
|
|
|
#define MENU_DEFAULT_DRIVER MENU_MATERIALUI
|
2015-07-25 18:57:11 +00:00
|
|
|
#elif defined(MAC_OS_X_VERSION_10_6)
|
|
|
|
#define MENU_DEFAULT_DRIVER MENU_XMB
|
2014-05-27 15:13:53 +00:00
|
|
|
#else
|
|
|
|
#define MENU_DEFAULT_DRIVER MENU_RGUI
|
|
|
|
#endif
|
|
|
|
|
2013-01-11 07:38:02 +00:00
|
|
|
#if defined(XENON) || defined(_XBOX360) || defined(__CELLOS_LV2__)
|
|
|
|
#define DEFAULT_ASPECT_RATIO 1.7778f
|
2014-05-20 00:48:11 +00:00
|
|
|
#elif defined(_XBOX1) || defined(GEKKO) || defined(ANDROID) || defined(__QNX__)
|
2013-01-11 07:38:02 +00:00
|
|
|
#define DEFAULT_ASPECT_RATIO 1.3333f
|
|
|
|
#else
|
|
|
|
#define DEFAULT_ASPECT_RATIO -1.0f
|
|
|
|
#endif
|
|
|
|
|
2015-03-30 21:56:39 +00:00
|
|
|
#ifdef RARCH_MOBILE
|
|
|
|
static const bool pointer_enable = true;
|
|
|
|
#else
|
|
|
|
static const bool pointer_enable = false;
|
|
|
|
#endif
|
|
|
|
|
2015-11-16 04:52:55 +00:00
|
|
|
|
|
|
|
|
2015-07-08 14:45:04 +00:00
|
|
|
/* Certain platforms might have assets stored in the bundle that
|
|
|
|
* we need to extract to a user-writable directory on first boot.
|
|
|
|
*
|
|
|
|
* Examples include: Android, iOS/OSX) */
|
|
|
|
#if defined(ANDROID)
|
|
|
|
static bool bundle_assets_extract_enable = true;
|
|
|
|
#else
|
|
|
|
static bool bundle_assets_extract_enable = false;
|
|
|
|
#endif
|
|
|
|
|
2014-10-17 02:17:28 +00:00
|
|
|
static const bool def_history_list_enable = true;
|
|
|
|
|
|
|
|
static const unsigned int def_user_language = 0;
|
|
|
|
|
2015-11-01 15:38:04 +00:00
|
|
|
#if (defined(__APPLE__) && defined(__MACH__) && defined(OSX)) || (defined(_WIN32) && !defined(_XBOX))
|
|
|
|
static const bool def_mouse_enable = true;
|
|
|
|
#else
|
|
|
|
static const bool def_mouse_enable = false;
|
|
|
|
#endif
|
|
|
|
|
2014-09-08 15:12:37 +00:00
|
|
|
/* VIDEO */
|
2010-12-22 14:58:43 +00:00
|
|
|
|
2013-01-11 21:46:14 +00:00
|
|
|
#if defined(_XBOX360)
|
|
|
|
#define DEFAULT_GAMMA 1
|
|
|
|
#else
|
|
|
|
#define DEFAULT_GAMMA 0
|
|
|
|
#endif
|
|
|
|
|
2014-09-08 15:12:37 +00:00
|
|
|
/* Windowed
|
|
|
|
* Real x resolution = aspect * base_size * x scale
|
|
|
|
* Real y resolution = base_size * y scale
|
|
|
|
*/
|
2014-08-11 21:57:57 +00:00
|
|
|
static const float scale = 3.0;
|
2010-12-22 14:58:43 +00:00
|
|
|
|
2014-09-08 15:12:37 +00:00
|
|
|
/* Fullscreen */
|
|
|
|
|
|
|
|
/* To start in Fullscreen, or not. */
|
|
|
|
static const bool fullscreen = false;
|
|
|
|
|
|
|
|
/* To use windowed mode or not when going fullscreen. */
|
2015-08-30 22:55:34 +00:00
|
|
|
static const bool windowed_fullscreen = true;
|
2014-09-08 15:12:37 +00:00
|
|
|
|
|
|
|
/* Which monitor to prefer. 0 is any monitor, 1 and up selects
|
|
|
|
* specific monitors, 1 being the first monitor. */
|
|
|
|
static const unsigned monitor_index = 0;
|
|
|
|
|
|
|
|
/* Fullscreen resolution. A value of 0 uses the desktop
|
|
|
|
* resolution. */
|
|
|
|
static const unsigned fullscreen_x = 0;
|
2011-02-28 15:59:31 +00:00
|
|
|
static const unsigned fullscreen_y = 0;
|
2010-12-22 14:58:43 +00:00
|
|
|
|
2014-04-14 04:07:17 +00:00
|
|
|
#if defined(RARCH_CONSOLE) || defined(__APPLE__)
|
|
|
|
static const bool load_dummy_on_core_shutdown = false;
|
|
|
|
#else
|
|
|
|
static const bool load_dummy_on_core_shutdown = true;
|
|
|
|
#endif
|
|
|
|
|
2014-09-08 15:12:37 +00:00
|
|
|
/* Forcibly disable composition.
|
|
|
|
* Only valid on Windows Vista/7/8 for now. */
|
2011-08-07 13:00:34 +00:00
|
|
|
static const bool disable_composition = false;
|
|
|
|
|
2014-09-08 15:12:37 +00:00
|
|
|
/* Video VSYNC (recommended) */
|
2010-12-22 14:58:43 +00:00
|
|
|
static const bool vsync = true;
|
|
|
|
|
2014-09-08 15:12:37 +00:00
|
|
|
/* Attempts to hard-synchronize CPU and GPU.
|
|
|
|
* Can reduce latency at cost of performance. */
|
2013-05-03 12:04:29 +00:00
|
|
|
static const bool hard_sync = false;
|
2014-09-08 15:12:37 +00:00
|
|
|
|
|
|
|
/* Configures how many frames the GPU can run ahead of CPU.
|
|
|
|
* 0: Syncs to GPU immediately.
|
|
|
|
* 1: Syncs to previous frame.
|
|
|
|
* 2: Etc ...
|
|
|
|
*/
|
2013-05-26 11:43:24 +00:00
|
|
|
static const unsigned hard_sync_frames = 0;
|
2013-05-03 12:04:29 +00:00
|
|
|
|
2014-09-08 15:12:37 +00:00
|
|
|
/* Sets how many milliseconds to delay after VSync before running the core.
|
|
|
|
* Can reduce latency at cost of higher risk of stuttering.
|
|
|
|
*/
|
2014-08-28 18:54:42 +00:00
|
|
|
static const unsigned frame_delay = 0;
|
|
|
|
|
2014-09-08 15:12:37 +00:00
|
|
|
/* Inserts a black frame inbetween frames.
|
2015-08-30 22:55:34 +00:00
|
|
|
* Useful for 120 Hz monitors who want to play 60 Hz material with eliminated
|
|
|
|
* ghosting. video_refresh_rate should still be configured as if it
|
2014-09-08 15:12:37 +00:00
|
|
|
* is a 60 Hz monitor (divide refresh rate by 2).
|
|
|
|
*/
|
2013-08-30 07:35:13 +00:00
|
|
|
static bool black_frame_insertion = false;
|
|
|
|
|
2014-09-08 15:12:37 +00:00
|
|
|
/* Uses a custom swap interval for VSync.
|
|
|
|
* Set this to effectively halve monitor refresh rate.
|
|
|
|
*/
|
2013-09-01 11:20:10 +00:00
|
|
|
static unsigned swap_interval = 1;
|
|
|
|
|
2015-08-30 22:55:34 +00:00
|
|
|
/* Threaded video. Will possibly increase performance significantly
|
2014-09-08 15:12:37 +00:00
|
|
|
* at the cost of worse synchronization and latency.
|
|
|
|
*/
|
2013-02-16 01:21:43 +00:00
|
|
|
static const bool video_threaded = false;
|
|
|
|
|
2015-07-12 16:23:03 +00:00
|
|
|
#if defined(HAVE_THREADS)
|
|
|
|
#if defined(GEKKO) || defined(PSP) || defined(_3DS) || defined(_XBOX1)
|
|
|
|
/* For single-core consoles right now it's better to have this be disabled. */
|
|
|
|
static const bool threaded_data_runloop_enable = false;
|
|
|
|
#else
|
2015-06-14 18:10:23 +00:00
|
|
|
static const bool threaded_data_runloop_enable = true;
|
2015-07-12 16:23:03 +00:00
|
|
|
#endif
|
2015-04-15 18:11:43 +00:00
|
|
|
#else
|
2015-04-12 01:27:20 +00:00
|
|
|
static const bool threaded_data_runloop_enable = false;
|
2015-04-15 18:11:43 +00:00
|
|
|
#endif
|
2015-04-12 01:27:20 +00:00
|
|
|
|
2014-09-08 15:12:37 +00:00
|
|
|
/* Set to true if HW render cores should get their private context. */
|
2014-04-19 14:37:39 +00:00
|
|
|
static const bool video_shared_context = false;
|
|
|
|
|
2014-09-08 15:12:37 +00:00
|
|
|
/* Sets GC/Wii screen width. */
|
2014-08-10 20:39:08 +00:00
|
|
|
static const unsigned video_viwidth = 640;
|
|
|
|
|
2014-10-04 05:13:08 +00:00
|
|
|
/* Removes 480i flicker, smooths picture a little. */
|
|
|
|
static const bool video_vfilter = true;
|
|
|
|
|
2014-09-08 15:12:37 +00:00
|
|
|
/* Smooths picture. */
|
2010-12-24 00:00:34 +00:00
|
|
|
static const bool video_smooth = true;
|
2010-12-22 14:58:43 +00:00
|
|
|
|
2014-09-08 15:12:37 +00:00
|
|
|
/* On resize and fullscreen, rendering area will stay 4:3 */
|
2015-08-30 22:55:34 +00:00
|
|
|
static const bool force_aspect = true;
|
2010-12-22 14:58:43 +00:00
|
|
|
|
2014-09-08 15:12:37 +00:00
|
|
|
/* Enable use of shaders. */
|
2013-04-07 11:08:09 +00:00
|
|
|
#ifdef RARCH_CONSOLE
|
|
|
|
static const bool shader_enable = true;
|
|
|
|
#else
|
2013-04-06 23:38:11 +00:00
|
|
|
static const bool shader_enable = false;
|
2013-04-07 11:08:09 +00:00
|
|
|
#endif
|
2013-04-06 23:38:11 +00:00
|
|
|
|
2014-09-08 15:12:37 +00:00
|
|
|
/* Only scale in integer steps.
|
|
|
|
* The base size depends on system-reported geometry and aspect ratio.
|
|
|
|
* If video_force_aspect is not set, X/Y will be integer scaled independently.
|
|
|
|
*/
|
2013-01-29 18:28:33 +00:00
|
|
|
static const bool scale_integer = false;
|
|
|
|
|
2014-09-08 15:12:37 +00:00
|
|
|
/* Controls aspect ratio handling. */
|
|
|
|
|
|
|
|
/* Automatic */
|
|
|
|
static const float aspect_ratio = DEFAULT_ASPECT_RATIO;
|
|
|
|
|
|
|
|
/* 1:1 PAR */
|
|
|
|
static const bool aspect_ratio_auto = false;
|
2012-04-15 15:36:09 +00:00
|
|
|
|
2013-03-23 16:21:42 +00:00
|
|
|
#if defined(__CELLOS_LV2) || defined(_XBOX360)
|
|
|
|
static unsigned aspect_ratio_idx = ASPECT_RATIO_16_9;
|
2014-10-24 22:43:50 +00:00
|
|
|
#elif defined(PSP)
|
|
|
|
static unsigned aspect_ratio_idx = ASPECT_RATIO_CORE;
|
2013-04-20 08:56:04 +00:00
|
|
|
#elif defined(RARCH_CONSOLE)
|
2013-03-23 16:21:42 +00:00
|
|
|
static unsigned aspect_ratio_idx = ASPECT_RATIO_4_3;
|
2013-04-20 08:56:04 +00:00
|
|
|
#else
|
2014-09-08 15:12:37 +00:00
|
|
|
static unsigned aspect_ratio_idx = ASPECT_RATIO_CONFIG;
|
2013-03-23 16:21:42 +00:00
|
|
|
#endif
|
|
|
|
|
2014-09-08 15:12:37 +00:00
|
|
|
/* Save configuration file on exit. */
|
2013-05-22 13:35:28 +00:00
|
|
|
static bool config_save_on_exit = true;
|
|
|
|
|
2014-07-08 11:55:23 +00:00
|
|
|
static const bool default_overlay_enable = false;
|
|
|
|
|
2015-07-09 02:05:59 +00:00
|
|
|
static const bool overlay_hide_in_menu = true;
|
|
|
|
|
2013-11-08 03:36:16 +00:00
|
|
|
#ifdef HAVE_MENU
|
2013-10-30 12:58:35 +00:00
|
|
|
static bool default_block_config_read = true;
|
2015-02-26 02:12:35 +00:00
|
|
|
|
2015-04-01 16:50:52 +00:00
|
|
|
static bool show_advanced_settings = true;
|
2015-03-14 22:21:55 +00:00
|
|
|
static const uint32_t menu_entry_normal_color = 0xffffffff;
|
|
|
|
static const uint32_t menu_entry_hover_color = 0xff64ff64;
|
|
|
|
static const uint32_t menu_title_color = 0xff64ff64;
|
2013-10-30 12:58:35 +00:00
|
|
|
#else
|
|
|
|
static bool default_block_config_read = false;
|
2013-10-30 11:45:46 +00:00
|
|
|
#endif
|
|
|
|
|
2014-01-01 19:44:20 +00:00
|
|
|
#ifdef RARCH_CONSOLE
|
|
|
|
static bool default_core_specific_config = true;
|
|
|
|
#else
|
|
|
|
static bool default_core_specific_config = false;
|
|
|
|
#endif
|
|
|
|
|
2015-11-17 21:28:36 +00:00
|
|
|
static bool default_game_specific_options = false;
|
2015-04-18 01:07:15 +00:00
|
|
|
static bool default_auto_overrides_enable = false;
|
2015-04-18 01:10:26 +00:00
|
|
|
static bool default_auto_remaps_enable = false;
|
2015-04-18 01:07:15 +00:00
|
|
|
|
2015-05-07 23:06:14 +00:00
|
|
|
static bool default_sort_savefiles_enable = false;
|
|
|
|
static bool default_sort_savestates_enable = false;
|
|
|
|
|
2015-05-07 01:55:15 +00:00
|
|
|
static unsigned default_menu_btn_ok = RETRO_DEVICE_ID_JOYPAD_A;
|
|
|
|
static unsigned default_menu_btn_cancel = RETRO_DEVICE_ID_JOYPAD_B;
|
|
|
|
static unsigned default_menu_btn_search = RETRO_DEVICE_ID_JOYPAD_X;
|
|
|
|
static unsigned default_menu_btn_default = RETRO_DEVICE_ID_JOYPAD_START;
|
|
|
|
static unsigned default_menu_btn_info = RETRO_DEVICE_ID_JOYPAD_SELECT;
|
|
|
|
static unsigned default_menu_btn_scroll_down = RETRO_DEVICE_ID_JOYPAD_R;
|
|
|
|
static unsigned default_menu_btn_scroll_up = RETRO_DEVICE_ID_JOYPAD_L;
|
|
|
|
|
2015-07-09 04:35:18 +00:00
|
|
|
#if defined(__CELLOS_LV2__) || defined(_XBOX1) || defined(_XBOX360)
|
2015-07-09 04:27:17 +00:00
|
|
|
static unsigned menu_toggle_gamepad_combo = 2;
|
|
|
|
#else
|
|
|
|
static unsigned menu_toggle_gamepad_combo = 0;
|
|
|
|
#endif
|
|
|
|
|
2015-07-11 23:58:43 +00:00
|
|
|
#ifdef ANDROID
|
2015-07-11 01:13:38 +00:00
|
|
|
static bool back_as_menu_toggle_enable = true;
|
2015-07-11 23:58:43 +00:00
|
|
|
#endif
|
2015-07-11 01:13:38 +00:00
|
|
|
|
2014-09-08 15:12:37 +00:00
|
|
|
/* Crop overscanned frames. */
|
2011-11-09 21:18:48 +00:00
|
|
|
static const bool crop_overscan = true;
|
2011-05-05 12:13:12 +00:00
|
|
|
|
2014-09-08 15:12:37 +00:00
|
|
|
/* Font size for on-screen messages. */
|
2015-07-14 13:46:01 +00:00
|
|
|
#if defined(HAVE_LIBDBGFONT)
|
2013-01-11 20:04:51 +00:00
|
|
|
static const float font_size = 1.0f;
|
|
|
|
#else
|
2014-06-07 19:27:52 +00:00
|
|
|
static const float font_size = 32;
|
2013-01-11 20:04:51 +00:00
|
|
|
#endif
|
2011-01-23 01:48:06 +00:00
|
|
|
|
2015-08-30 22:55:34 +00:00
|
|
|
/* Offset for where messages will be placed on-screen.
|
2014-09-08 15:12:37 +00:00
|
|
|
* Values are in range [0.0, 1.0]. */
|
2011-01-23 12:50:22 +00:00
|
|
|
static const float message_pos_offset_x = 0.05;
|
2015-07-14 13:46:01 +00:00
|
|
|
#if defined(_XBOX1)
|
2014-07-27 01:43:25 +00:00
|
|
|
static const float message_pos_offset_y = 0.90;
|
|
|
|
#else
|
2011-01-23 12:50:22 +00:00
|
|
|
static const float message_pos_offset_y = 0.05;
|
2014-07-27 01:43:25 +00:00
|
|
|
#endif
|
2011-01-23 01:59:44 +00:00
|
|
|
|
2014-09-08 15:12:37 +00:00
|
|
|
/* Color of the message.
|
|
|
|
* RGB hex value. */
|
|
|
|
static const uint32_t message_color = 0xffff00;
|
|
|
|
|
|
|
|
/* Record post-filtered (CPU filter) video,
|
|
|
|
* rather than raw game output. */
|
2011-08-11 03:25:31 +00:00
|
|
|
static const bool post_filter_record = false;
|
|
|
|
|
2014-09-08 15:12:37 +00:00
|
|
|
/* Screenshots post-shaded GPU output if available. */
|
2012-08-26 19:18:00 +00:00
|
|
|
static const bool gpu_screenshot = true;
|
|
|
|
|
2014-09-08 15:12:37 +00:00
|
|
|
/* Record post-shaded GPU output instead of raw game footage if available. */
|
2012-08-25 20:38:49 +00:00
|
|
|
static const bool gpu_record = false;
|
|
|
|
|
2014-09-08 15:12:37 +00:00
|
|
|
/* OSD-messages. */
|
2011-11-09 23:15:41 +00:00
|
|
|
static const bool font_enable = true;
|
|
|
|
|
2014-09-08 15:12:37 +00:00
|
|
|
/* The accurate refresh rate of your monitor (Hz).
|
|
|
|
* This is used to calculate audio input rate with the formula:
|
2015-08-30 22:55:34 +00:00
|
|
|
* audio_input_rate = game_input_rate * display_refresh_rate /
|
2014-09-08 15:12:37 +00:00
|
|
|
* game_refresh_rate.
|
|
|
|
*
|
|
|
|
* If the implementation does not report any values,
|
|
|
|
* NTSC defaults will be assumed for compatibility.
|
|
|
|
* This value should stay close to 60Hz to avoid large pitch changes.
|
2015-08-30 22:55:34 +00:00
|
|
|
* If your monitor does not run at 60Hz, or something close to it,
|
2014-09-08 15:12:37 +00:00
|
|
|
* disable VSync, and leave this at its default. */
|
2015-09-28 19:09:07 +00:00
|
|
|
#ifdef _3DS
|
|
|
|
static const float refresh_rate = (32730.0 * 8192.0) / 4481134.0 ;
|
|
|
|
#elif defined(RARCH_CONSOLE)
|
2015-08-30 22:55:34 +00:00
|
|
|
static const float refresh_rate = 60/1.001;
|
2011-12-02 14:59:07 +00:00
|
|
|
#else
|
2015-08-30 22:55:34 +00:00
|
|
|
static const float refresh_rate = 59.95;
|
2011-12-02 14:59:07 +00:00
|
|
|
#endif
|
2011-11-18 14:14:56 +00:00
|
|
|
|
2015-08-30 22:55:34 +00:00
|
|
|
/* Allow games to set rotation. If false, rotation requests are
|
2014-09-08 15:12:37 +00:00
|
|
|
* honored, but ignored.
|
|
|
|
* Used for setups where one manually rotates the monitor. */
|
2012-04-01 14:12:04 +00:00
|
|
|
static const bool allow_rotate = true;
|
|
|
|
|
2014-09-08 15:12:37 +00:00
|
|
|
/* AUDIO */
|
2010-12-22 14:58:43 +00:00
|
|
|
|
2014-09-08 15:12:37 +00:00
|
|
|
/* Will enable audio or not. */
|
2011-12-13 22:17:37 +00:00
|
|
|
static const bool audio_enable = true;
|
2010-12-22 14:58:43 +00:00
|
|
|
|
2014-09-08 15:12:37 +00:00
|
|
|
/* Output samplerate. */
|
2015-09-06 22:05:59 +00:00
|
|
|
#ifdef GEKKO
|
|
|
|
static const unsigned out_rate = 32000;
|
2015-09-28 19:09:07 +00:00
|
|
|
#elif defined(_3DS)
|
|
|
|
static const unsigned out_rate = 32730;
|
2015-09-06 22:05:59 +00:00
|
|
|
#else
|
2013-07-17 15:38:16 +00:00
|
|
|
static const unsigned out_rate = 48000;
|
2015-09-06 22:05:59 +00:00
|
|
|
#endif
|
2010-12-22 14:58:43 +00:00
|
|
|
|
2014-09-08 15:12:37 +00:00
|
|
|
/* Audio device (e.g. hw:0,0 or /dev/audio). If NULL, will use defaults. */
|
2011-11-02 18:31:36 +00:00
|
|
|
static const char *audio_device = NULL;
|
2010-12-22 14:58:43 +00:00
|
|
|
|
2015-08-30 22:55:34 +00:00
|
|
|
/* Desired audio latency in milliseconds. Might not be honored
|
2014-09-08 15:12:37 +00:00
|
|
|
* if driver can't provide given latency. */
|
2010-12-22 14:58:43 +00:00
|
|
|
static const int out_latency = 64;
|
|
|
|
|
2014-09-08 15:12:37 +00:00
|
|
|
/* Will sync audio. (recommended) */
|
2010-12-22 14:58:43 +00:00
|
|
|
static const bool audio_sync = true;
|
|
|
|
|
2014-09-08 15:12:37 +00:00
|
|
|
/* Audio rate control. */
|
2015-07-16 07:35:04 +00:00
|
|
|
#if !defined(RARCH_CONSOLE)
|
2012-08-06 19:24:17 +00:00
|
|
|
static const bool rate_control = true;
|
|
|
|
#else
|
2012-02-14 00:16:37 +00:00
|
|
|
static const bool rate_control = false;
|
2012-08-06 19:24:17 +00:00
|
|
|
#endif
|
2012-02-14 00:16:37 +00:00
|
|
|
|
2015-08-30 22:55:34 +00:00
|
|
|
/* Rate control delta. Defines how much rate_control
|
2014-09-08 15:12:37 +00:00
|
|
|
* is allowed to adjust input rate. */
|
2012-02-14 00:16:37 +00:00
|
|
|
static const float rate_control_delta = 0.005;
|
|
|
|
|
2014-11-16 14:24:58 +00:00
|
|
|
/* Maximum timing skew. Defines how much adjust_system_rates
|
|
|
|
* is allowed to adjust input rate. */
|
|
|
|
static const float max_timing_skew = 0.05;
|
|
|
|
|
2014-09-08 15:12:37 +00:00
|
|
|
/* Default audio volume in dB. (0.0 dB == unity gain). */
|
2012-11-03 13:15:03 +00:00
|
|
|
static const float audio_volume = 0.0;
|
|
|
|
|
2014-09-08 15:12:37 +00:00
|
|
|
/* MISC */
|
2012-02-14 00:16:37 +00:00
|
|
|
|
2014-09-08 15:12:37 +00:00
|
|
|
/* Enables displaying the current frames per second. */
|
2014-07-12 00:33:23 +00:00
|
|
|
static const bool fps_show = false;
|
|
|
|
|
2015-08-30 22:55:34 +00:00
|
|
|
/* Enables use of rewind. This will incur some memory footprint
|
2014-09-08 15:12:37 +00:00
|
|
|
* depending on the save state buffer. */
|
2011-01-31 17:06:57 +00:00
|
|
|
static const bool rewind_enable = false;
|
|
|
|
|
2015-08-30 22:55:34 +00:00
|
|
|
/* The buffer size for the rewind buffer. This needs to be about
|
2014-09-08 15:12:37 +00:00
|
|
|
* 15-20MB per minute. Very game dependant. */
|
|
|
|
static const unsigned rewind_buffer_size = 20 << 20; /* 20MiB */
|
2011-01-31 17:06:57 +00:00
|
|
|
|
2014-09-08 15:12:37 +00:00
|
|
|
/* How many frames to rewind at a time. */
|
2011-02-01 16:30:18 +00:00
|
|
|
static const unsigned rewind_granularity = 1;
|
|
|
|
|
2014-09-08 15:12:37 +00:00
|
|
|
/* Pause gameplay when gameplay loses focus. */
|
2015-10-19 01:44:57 +00:00
|
|
|
static const bool pause_nonactive = true;
|
2010-12-22 14:58:43 +00:00
|
|
|
|
2014-09-08 15:12:37 +00:00
|
|
|
/* Saves non-volatile SRAM at a regular interval.
|
|
|
|
* It is measured in seconds. A value of 0 disables autosave. */
|
2011-02-10 20:16:59 +00:00
|
|
|
static const unsigned autosave_interval = 0;
|
|
|
|
|
2015-08-30 22:55:34 +00:00
|
|
|
/* When being client over netplay, use keybinds for
|
2014-12-05 13:21:04 +00:00
|
|
|
* user 1 rather than user 2. */
|
2011-06-22 19:56:04 +00:00
|
|
|
static const bool netplay_client_swap_input = true;
|
2011-02-20 11:12:53 +00:00
|
|
|
|
2014-09-08 15:12:37 +00:00
|
|
|
/* On save state load, block SRAM from being overwritten.
|
|
|
|
* This could potentially lead to buggy games. */
|
2011-09-16 13:32:21 +00:00
|
|
|
static const bool block_sram_overwrite = false;
|
|
|
|
|
2015-08-30 22:55:34 +00:00
|
|
|
/* When saving savestates, state index is automatically
|
2014-09-08 15:12:37 +00:00
|
|
|
* incremented before saving.
|
2015-08-30 22:55:34 +00:00
|
|
|
* When the content is loaded, state index will be set
|
2014-09-08 15:12:37 +00:00
|
|
|
* to the highest existing value. */
|
2011-09-27 13:31:25 +00:00
|
|
|
static const bool savestate_auto_index = false;
|
|
|
|
|
2014-09-08 15:12:37 +00:00
|
|
|
/* Automatically saves a savestate at the end of RetroArch's lifetime.
|
|
|
|
* The path is $SRAM_PATH.auto.
|
2015-08-30 22:55:34 +00:00
|
|
|
* RetroArch will automatically load any savestate with this path on
|
2014-09-08 15:12:37 +00:00
|
|
|
* startup if savestate_auto_load is set. */
|
2012-06-02 19:33:37 +00:00
|
|
|
static const bool savestate_auto_save = false;
|
2014-09-18 06:39:06 +00:00
|
|
|
static const bool savestate_auto_load = false;
|
2012-06-02 19:33:37 +00:00
|
|
|
|
2014-09-08 15:12:37 +00:00
|
|
|
/* Slowmotion ratio. */
|
2012-03-04 11:01:07 +00:00
|
|
|
static const float slowmotion_ratio = 3.0;
|
|
|
|
|
2014-10-03 16:05:46 +00:00
|
|
|
/* Maximum fast forward ratio. */
|
2015-08-27 12:39:42 +00:00
|
|
|
static const float fastforward_ratio = 0.0;
|
2013-08-07 20:24:12 +00:00
|
|
|
|
2014-09-08 15:12:37 +00:00
|
|
|
/* Enable stdin/network command interface. */
|
2012-05-27 12:12:29 +00:00
|
|
|
static const bool network_cmd_enable = false;
|
|
|
|
static const uint16_t network_cmd_port = 55355;
|
2012-07-24 00:47:28 +00:00
|
|
|
static const bool stdin_cmd_enable = false;
|
2012-05-27 12:12:29 +00:00
|
|
|
|
2015-11-27 05:11:52 +00:00
|
|
|
static const uint16_t network_remote_base_port = 55400;
|
2014-09-08 15:12:37 +00:00
|
|
|
/* Number of entries that will be kept in content history playlist file. */
|
2014-08-12 02:57:31 +00:00
|
|
|
static const unsigned default_content_history_size = 100;
|
2013-06-09 19:59:48 +00:00
|
|
|
|
2014-09-08 15:12:37 +00:00
|
|
|
/* Show Menu start-up screen on boot. */
|
2014-06-10 00:06:10 +00:00
|
|
|
static const bool menu_show_start_screen = true;
|
2013-10-05 09:11:43 +00:00
|
|
|
|
2015-07-04 17:16:17 +00:00
|
|
|
#ifdef RARCH_MOBILE
|
2015-04-24 14:37:09 +00:00
|
|
|
static const bool menu_dpi_override_enable = false;
|
2015-07-04 17:16:17 +00:00
|
|
|
#else
|
|
|
|
static const bool menu_dpi_override_enable = true;
|
|
|
|
#endif
|
2015-04-24 14:37:09 +00:00
|
|
|
|
2015-07-04 17:16:17 +00:00
|
|
|
#ifdef RARCH_MOBILE
|
2015-04-24 14:37:09 +00:00
|
|
|
static const unsigned menu_dpi_override_value = 72;
|
2015-07-04 17:16:17 +00:00
|
|
|
#else
|
|
|
|
static const unsigned menu_dpi_override_value = 200;
|
|
|
|
#endif
|
2015-04-24 14:37:09 +00:00
|
|
|
|
2014-09-08 15:12:37 +00:00
|
|
|
/* Log level for libretro cores (GET_LOG_INTERFACE). */
|
2014-03-01 11:02:48 +00:00
|
|
|
static const unsigned libretro_log_level = 0;
|
|
|
|
|
2014-08-24 17:00:36 +00:00
|
|
|
#ifndef RARCH_DEFAULT_PORT
|
|
|
|
#define RARCH_DEFAULT_PORT 55435
|
|
|
|
#endif
|
2010-12-22 14:58:43 +00:00
|
|
|
|
2014-09-08 15:12:37 +00:00
|
|
|
/* KEYBINDS, JOYPAD */
|
2010-12-22 14:58:43 +00:00
|
|
|
|
2014-09-08 15:12:37 +00:00
|
|
|
/* Axis threshold (between 0.0 and 1.0)
|
|
|
|
* How far an axis must be tilted to result in a button press. */
|
2011-09-06 17:53:22 +00:00
|
|
|
static const float axis_threshold = 0.5;
|
2010-12-22 14:58:43 +00:00
|
|
|
|
2014-09-08 15:12:37 +00:00
|
|
|
/* Describes speed of which turbo-enabled buttons toggle. */
|
2012-10-01 20:15:48 +00:00
|
|
|
static const unsigned turbo_period = 6;
|
|
|
|
static const unsigned turbo_duty_cycle = 3;
|
2010-12-22 14:58:43 +00:00
|
|
|
|
2014-09-08 15:12:37 +00:00
|
|
|
/* Enable input auto-detection. Will attempt to autoconfigure
|
|
|
|
* gamepads, plug-and-play style. */
|
2013-01-05 19:06:59 +00:00
|
|
|
static const bool input_autodetect_enable = true;
|
|
|
|
|
2015-08-30 22:55:34 +00:00
|
|
|
/* Show the input descriptors set by the core instead
|
2014-12-04 12:26:27 +00:00
|
|
|
* of the default ones. */
|
|
|
|
static const bool input_descriptor_label_show = true;
|
|
|
|
|
2014-12-05 13:13:29 +00:00
|
|
|
static const bool input_descriptor_hide_unbound = false;
|
|
|
|
|
2015-07-08 22:10:44 +00:00
|
|
|
static const unsigned input_max_users = 5;
|
2015-06-25 16:43:01 +00:00
|
|
|
|
2015-11-16 04:52:55 +00:00
|
|
|
#ifdef IOS
|
|
|
|
static const bool ui_companion_start_on_boot = false;
|
|
|
|
#else
|
|
|
|
static const bool ui_companion_start_on_boot = true;
|
|
|
|
#endif
|
|
|
|
|
2015-01-21 05:28:40 +00:00
|
|
|
#if defined(ANDROID)
|
|
|
|
#if defined(ANDROID_ARM)
|
|
|
|
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/android/latest/armeabi-v7a/";
|
|
|
|
#elif defined(ANDROID_X86)
|
|
|
|
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/android/latest/x86/";
|
2015-01-21 05:51:45 +00:00
|
|
|
#else
|
|
|
|
static char buildbot_server_url[] = "";
|
2015-01-21 05:28:40 +00:00
|
|
|
#endif
|
|
|
|
#elif defined(IOS)
|
2015-10-20 17:52:40 +00:00
|
|
|
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/apple/ios/latest/";
|
2015-02-17 05:35:51 +00:00
|
|
|
#elif defined(OSX)
|
|
|
|
#if defined(__x86_64__)
|
2015-10-19 23:24:46 +00:00
|
|
|
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/apple/osx/x86_64/latest/";
|
2015-02-17 05:35:51 +00:00
|
|
|
#elif defined(__i386__) || defined(__i486__) || defined(__i686__)
|
2015-10-19 23:24:46 +00:00
|
|
|
static char buildbot_server_url[] = "http://bot.libretro.com/nightly/apple/osx/x86/latest/";
|
2015-02-22 22:45:46 +00:00
|
|
|
#else
|
2015-10-20 17:52:40 +00:00
|
|
|
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/apple/osx/ppc/latest/";
|
2015-02-17 05:35:51 +00:00
|
|
|
#endif
|
2015-01-21 05:28:40 +00:00
|
|
|
#elif defined(_WIN32) && !defined(_XBOX)
|
|
|
|
#if defined(__x86_64__)
|
2015-01-21 05:29:36 +00:00
|
|
|
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/win-x86_64/latest/";
|
2015-01-21 05:28:40 +00:00
|
|
|
#elif defined(__i386__) || defined(__i486__) || defined(__i686__)
|
2015-01-21 05:29:36 +00:00
|
|
|
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/win-x86/latest/";
|
2015-01-21 05:28:40 +00:00
|
|
|
#endif
|
2015-03-06 01:47:00 +00:00
|
|
|
#elif defined(__linux__)
|
|
|
|
#if defined(__x86_64__)
|
|
|
|
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/linux/x86_64/latest/";
|
2015-10-20 17:52:40 +00:00
|
|
|
#elif defined(__i386__) || defined(__i486__) || defined(__i686__)
|
|
|
|
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/linux/x86/latest/";
|
2015-03-06 01:47:00 +00:00
|
|
|
#else
|
|
|
|
static char buildbot_server_url[] = "";
|
|
|
|
#endif
|
2015-01-21 05:28:40 +00:00
|
|
|
#else
|
|
|
|
static char buildbot_server_url[] = "";
|
|
|
|
#endif
|
|
|
|
|
2015-02-01 16:13:15 +00:00
|
|
|
static char buildbot_assets_server_url[] = "http://buildbot.libretro.com/assets/";
|
|
|
|
|
2013-04-14 12:23:54 +00:00
|
|
|
#ifndef IS_SALAMANDER
|
2014-09-01 22:21:51 +00:00
|
|
|
#include "intl/intl.h"
|
2013-01-12 18:41:35 +00:00
|
|
|
|
2015-01-05 00:58:00 +00:00
|
|
|
/* User 1 */
|
2012-07-07 15:19:32 +00:00
|
|
|
static const struct retro_keybind retro_keybinds_1[] = {
|
2014-09-08 15:12:37 +00:00
|
|
|
/* | RetroPad button | desc | keyboard key | js btn | js axis | */
|
2014-09-01 22:21:51 +00:00
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_B, RETRO_LBL_JOYPAD_B, RETROK_z, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_Y, RETRO_LBL_JOYPAD_Y, RETROK_a, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_SELECT, RETRO_LBL_JOYPAD_SELECT, RETROK_RSHIFT, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_START, RETRO_LBL_JOYPAD_START, RETROK_RETURN, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_UP, RETRO_LBL_JOYPAD_UP, RETROK_UP, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_DOWN, RETRO_LBL_JOYPAD_DOWN, RETROK_DOWN, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_LEFT, RETRO_LBL_JOYPAD_LEFT, RETROK_LEFT, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_RIGHT, RETRO_LBL_JOYPAD_RIGHT, RETROK_RIGHT, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_A, RETRO_LBL_JOYPAD_A, RETROK_x, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_X, RETRO_LBL_JOYPAD_X, RETROK_s, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_L, RETRO_LBL_JOYPAD_L, RETROK_q, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_R, RETRO_LBL_JOYPAD_R, RETROK_w, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_L2, RETRO_LBL_JOYPAD_L2, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_R2, RETRO_LBL_JOYPAD_R2, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_L3, RETRO_LBL_JOYPAD_L3, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_R3, RETRO_LBL_JOYPAD_R3, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
|
2013-03-15 08:13:09 +00:00
|
|
|
|
|
|
|
{ true, RARCH_ANALOG_LEFT_X_PLUS, RETRO_LBL_ANALOG_LEFT_X_PLUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RARCH_ANALOG_LEFT_X_MINUS, RETRO_LBL_ANALOG_LEFT_X_MINUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RARCH_ANALOG_LEFT_Y_PLUS, RETRO_LBL_ANALOG_LEFT_Y_PLUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RARCH_ANALOG_LEFT_Y_MINUS, RETRO_LBL_ANALOG_LEFT_Y_MINUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RARCH_ANALOG_RIGHT_X_PLUS, RETRO_LBL_ANALOG_RIGHT_X_PLUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RARCH_ANALOG_RIGHT_X_MINUS, RETRO_LBL_ANALOG_RIGHT_X_MINUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RARCH_ANALOG_RIGHT_Y_PLUS, RETRO_LBL_ANALOG_RIGHT_Y_PLUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RARCH_ANALOG_RIGHT_Y_MINUS, RETRO_LBL_ANALOG_RIGHT_Y_MINUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
|
2012-07-28 01:21:37 +00:00
|
|
|
|
2014-09-01 22:21:51 +00:00
|
|
|
{ true, RARCH_TURBO_ENABLE, RETRO_LBL_TURBO_ENABLE, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
|
2013-03-15 08:13:09 +00:00
|
|
|
{ true, RARCH_FAST_FORWARD_KEY, RETRO_LBL_FAST_FORWARD_KEY, RETROK_SPACE, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RARCH_FAST_FORWARD_HOLD_KEY, RETRO_LBL_FAST_FORWARD_HOLD_KEY,RETROK_l, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RARCH_LOAD_STATE_KEY, RETRO_LBL_LOAD_STATE_KEY, RETROK_F4, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RARCH_SAVE_STATE_KEY, RETRO_LBL_SAVE_STATE_KEY, RETROK_F2, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RARCH_FULLSCREEN_TOGGLE_KEY, RETRO_LBL_FULLSCREEN_TOGGLE_KEY,RETROK_f, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RARCH_QUIT_KEY, RETRO_LBL_QUIT_KEY, RETROK_ESCAPE, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RARCH_STATE_SLOT_PLUS, RETRO_LBL_STATE_SLOT_PLUS, RETROK_F7, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RARCH_STATE_SLOT_MINUS, RETRO_LBL_STATE_SLOT_MINUS, RETROK_F6, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RARCH_REWIND, RETRO_LBL_REWIND, RETROK_r, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RARCH_MOVIE_RECORD_TOGGLE, RETRO_LBL_MOVIE_RECORD_TOGGLE, RETROK_o, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RARCH_PAUSE_TOGGLE, RETRO_LBL_PAUSE_TOGGLE, RETROK_p, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RARCH_FRAMEADVANCE, RETRO_LBL_FRAMEADVANCE, RETROK_k, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RARCH_RESET, RETRO_LBL_RESET, RETROK_h, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RARCH_SHADER_NEXT, RETRO_LBL_SHADER_NEXT, RETROK_m, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RARCH_SHADER_PREV, RETRO_LBL_SHADER_PREV, RETROK_n, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RARCH_CHEAT_INDEX_PLUS, RETRO_LBL_CHEAT_INDEX_PLUS, RETROK_y, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RARCH_CHEAT_INDEX_MINUS, RETRO_LBL_CHEAT_INDEX_MINUS, RETROK_t, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RARCH_CHEAT_TOGGLE, RETRO_LBL_CHEAT_TOGGLE, RETROK_u, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RARCH_SCREENSHOT, RETRO_LBL_SCREENSHOT, RETROK_F8, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RARCH_MUTE, RETRO_LBL_MUTE, RETROK_F9, NO_BTN, 0, AXIS_NONE },
|
2015-03-26 03:24:12 +00:00
|
|
|
{ true, RARCH_OSK, RETRO_LBL_OSK, RETROK_F12, NO_BTN, 0, AXIS_NONE },
|
2013-03-15 08:13:09 +00:00
|
|
|
{ true, RARCH_NETPLAY_FLIP, RETRO_LBL_NETPLAY_FLIP, RETROK_i, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RARCH_SLOWMOTION, RETRO_LBL_SLOWMOTION, RETROK_e, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RARCH_ENABLE_HOTKEY, RETRO_LBL_ENABLE_HOTKEY, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RARCH_VOLUME_UP, RETRO_LBL_VOLUME_UP, RETROK_KP_PLUS, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RARCH_VOLUME_DOWN, RETRO_LBL_VOLUME_DOWN, RETROK_KP_MINUS,NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RARCH_OVERLAY_NEXT, RETRO_LBL_OVERLAY_NEXT, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RARCH_DISK_EJECT_TOGGLE, RETRO_LBL_DISK_EJECT_TOGGLE, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RARCH_DISK_NEXT, RETRO_LBL_DISK_NEXT, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
|
2014-10-08 01:19:12 +00:00
|
|
|
{ true, RARCH_DISK_PREV, RETRO_LBL_DISK_PREV, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
|
2013-03-29 17:53:07 +00:00
|
|
|
{ true, RARCH_GRAB_MOUSE_TOGGLE, RETRO_LBL_GRAB_MOUSE_TOGGLE, RETROK_F11, NO_BTN, 0, AXIS_NONE },
|
2013-03-16 09:35:22 +00:00
|
|
|
{ true, RARCH_MENU_TOGGLE, RETRO_LBL_MENU_TOGGLE, RETROK_F1, NO_BTN, 0, AXIS_NONE },
|
2010-12-22 14:58:43 +00:00
|
|
|
};
|
|
|
|
|
2015-01-05 00:58:00 +00:00
|
|
|
/* Users 2 to MAX_USERS */
|
2012-07-07 15:19:32 +00:00
|
|
|
static const struct retro_keybind retro_keybinds_rest[] = {
|
2014-09-08 15:12:37 +00:00
|
|
|
/* | RetroPad button | desc | keyboard key | js btn | js axis | */
|
2013-03-15 08:13:09 +00:00
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_B, RETRO_LBL_JOYPAD_B, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_Y, RETRO_LBL_JOYPAD_Y, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_SELECT, RETRO_LBL_JOYPAD_SELECT, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_START, RETRO_LBL_JOYPAD_START, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_UP, RETRO_LBL_JOYPAD_UP, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_DOWN, RETRO_LBL_JOYPAD_DOWN, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_LEFT, RETRO_LBL_JOYPAD_LEFT, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_RIGHT, RETRO_LBL_JOYPAD_RIGHT, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_A, RETRO_LBL_JOYPAD_A, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_X, RETRO_LBL_JOYPAD_X, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_L, RETRO_LBL_JOYPAD_L, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_R, RETRO_LBL_JOYPAD_R, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_L2, RETRO_LBL_JOYPAD_L2, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_R2, RETRO_LBL_JOYPAD_R2, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_L3, RETRO_LBL_JOYPAD_L3, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_R3, RETRO_LBL_JOYPAD_R3, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
|
|
|
|
|
|
|
|
{ true, RARCH_ANALOG_LEFT_X_PLUS, RETRO_LBL_ANALOG_LEFT_X_PLUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RARCH_ANALOG_LEFT_X_MINUS, RETRO_LBL_ANALOG_LEFT_X_MINUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RARCH_ANALOG_LEFT_Y_PLUS, RETRO_LBL_ANALOG_LEFT_Y_PLUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RARCH_ANALOG_LEFT_Y_MINUS, RETRO_LBL_ANALOG_LEFT_Y_MINUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RARCH_ANALOG_RIGHT_X_PLUS, RETRO_LBL_ANALOG_RIGHT_X_PLUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RARCH_ANALOG_RIGHT_X_MINUS, RETRO_LBL_ANALOG_RIGHT_X_MINUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RARCH_ANALOG_RIGHT_Y_PLUS, RETRO_LBL_ANALOG_RIGHT_Y_PLUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
|
|
|
|
{ true, RARCH_ANALOG_RIGHT_Y_MINUS, RETRO_LBL_ANALOG_RIGHT_Y_MINUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
|
2013-09-30 17:40:41 +00:00
|
|
|
{ true, RARCH_TURBO_ENABLE, RETRO_LBL_TURBO_ENABLE, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
|
2010-12-22 14:58:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2013-04-14 12:23:54 +00:00
|
|
|
#endif
|