2012-04-03 17:19:18 +00:00
|
|
|
/* SSNES - A frontend for libretro.
|
2012-01-08 00:08:18 +00:00
|
|
|
* Copyright (C) 2010-2012 - Hans-Kristian Arntzen
|
2010-12-22 14:58:43 +00:00
|
|
|
*
|
|
|
|
* SSNES 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.
|
|
|
|
*
|
|
|
|
* SSNES 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 SSNES.
|
|
|
|
* If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/// Config header for SSNES
|
|
|
|
//
|
|
|
|
//
|
|
|
|
|
2011-01-05 19:09:12 +00:00
|
|
|
#ifndef __CONFIG_DEF_H
|
|
|
|
#define __CONFIG_DEF_H
|
2010-12-22 14:58:43 +00:00
|
|
|
|
2011-12-24 12:46:12 +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"
|
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
|
|
|
|
|
2011-09-13 12:40:33 +00:00
|
|
|
#include "input/keysym.h"
|
2011-01-07 10:09:56 +00:00
|
|
|
|
2010-12-22 14:58:43 +00:00
|
|
|
///////////////// Drivers
|
|
|
|
#define VIDEO_GL 0
|
2011-03-13 03:51:09 +00:00
|
|
|
#define VIDEO_XVIDEO 11
|
2011-04-21 01:23:44 +00:00
|
|
|
#define VIDEO_SDL 13
|
2011-05-11 15:52:16 +00:00
|
|
|
#define VIDEO_EXT 14
|
2011-12-14 13:26:40 +00:00
|
|
|
#define VIDEO_WII 24
|
2011-12-15 12:54:22 +00:00
|
|
|
#define VIDEO_XENON360 25
|
2012-01-05 12:30:13 +00:00
|
|
|
#define VIDEO_XDK360 28
|
2010-12-22 14:58:43 +00:00
|
|
|
////////////////////////
|
|
|
|
#define AUDIO_RSOUND 1
|
|
|
|
#define AUDIO_OSS 2
|
|
|
|
#define AUDIO_ALSA 3
|
|
|
|
#define AUDIO_ROAR 4
|
|
|
|
#define AUDIO_AL 5
|
2011-01-01 02:53:30 +00:00
|
|
|
#define AUDIO_JACK 6
|
2011-01-07 14:50:16 +00:00
|
|
|
#define AUDIO_SDL 8
|
2011-01-27 00:46:00 +00:00
|
|
|
#define AUDIO_XAUDIO 9
|
2011-01-29 00:15:09 +00:00
|
|
|
#define AUDIO_PULSE 10
|
2011-05-14 23:46:11 +00:00
|
|
|
#define AUDIO_EXT 15
|
2011-08-04 16:45:40 +00:00
|
|
|
#define AUDIO_DSOUND 16
|
2011-08-08 15:27:52 +00:00
|
|
|
#define AUDIO_COREAUDIO 17
|
2011-11-30 16:11:42 +00:00
|
|
|
#define AUDIO_PS3 18
|
2011-12-13 22:17:37 +00:00
|
|
|
#define AUDIO_XENON360 20
|
2011-12-14 11:49:13 +00:00
|
|
|
#define AUDIO_WII 22
|
2012-01-05 12:30:13 +00:00
|
|
|
#define AUDIO_XDK360 27
|
2010-12-22 14:58:43 +00:00
|
|
|
////////////////////////
|
2011-01-06 17:34:11 +00:00
|
|
|
#define INPUT_SDL 7
|
2011-03-13 03:51:09 +00:00
|
|
|
#define INPUT_X 12
|
2011-11-30 16:24:18 +00:00
|
|
|
#define INPUT_PS3 19
|
2011-12-14 00:35:17 +00:00
|
|
|
#define INPUT_XENON360 21
|
2011-12-14 12:20:22 +00:00
|
|
|
#define INPUT_WII 23
|
2012-01-05 12:30:13 +00:00
|
|
|
#define INPUT_XDK360 26
|
2011-01-06 17:34:11 +00:00
|
|
|
////////////////////////
|
2010-12-22 14:58:43 +00:00
|
|
|
|
2011-11-30 16:24:18 +00:00
|
|
|
#if defined(HAVE_OPENGL) || 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-01-05 12:30:13 +00:00
|
|
|
#elif defined(_XBOX)
|
|
|
|
#define VIDEO_DEFAULT_DRIVER VIDEO_XDK360
|
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
|
|
|
|
#elif defined(HAVE_DYLIB)
|
|
|
|
#define VIDEO_DEFAULT_DRIVER VIDEO_EXT
|
|
|
|
#else
|
2012-02-11 19:59:41 +00:00
|
|
|
#error "Need at least one video driver."
|
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
|
2012-01-05 12:30:13 +00:00
|
|
|
#elif defined(_XBOX)
|
|
|
|
#define AUDIO_DEFAULT_DRIVER AUDIO_XDK360
|
2011-12-14 11:49:13 +00:00
|
|
|
#elif defined(GEKKO)
|
|
|
|
#define AUDIO_DEFAULT_DRIVER AUDIO_WII
|
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
|
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
|
2011-08-04 16:45:40 +00:00
|
|
|
#elif defined(HAVE_DSOUND)
|
|
|
|
#define AUDIO_DEFAULT_DRIVER AUDIO_DSOUND
|
2011-08-04 16:52:00 +00:00
|
|
|
#elif defined(HAVE_SDL)
|
|
|
|
#define AUDIO_DEFAULT_DRIVER AUDIO_SDL
|
2011-01-27 13:43:46 +00:00
|
|
|
#elif defined(HAVE_XAUDIO)
|
|
|
|
#define AUDIO_DEFAULT_DRIVER AUDIO_XAUDIO
|
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
|
2011-05-14 23:46:11 +00:00
|
|
|
#elif defined(HAVE_DYLIB)
|
|
|
|
#define AUDIO_DEFAULT_DRIVER AUDIO_EXT
|
2011-01-27 13:43:46 +00:00
|
|
|
#else
|
2012-02-11 19:59:41 +00:00
|
|
|
#error "Need at least one audio driver."
|
2011-01-06 22:15:49 +00:00
|
|
|
#endif
|
|
|
|
|
2011-12-14 15:53:13 +00:00
|
|
|
#if defined(XENON)
|
|
|
|
#define INPUT_DEFAULT_DRIVER INPUT_XENON360
|
2012-01-05 12:30:13 +00:00
|
|
|
#elif defined(_XBOX)
|
|
|
|
#define INPUT_DEFAULT_DRIVER INPUT_XDK360
|
2011-12-14 15:53:13 +00:00
|
|
|
#elif defined(HAVE_SDL)
|
2011-01-06 17:34:11 +00:00
|
|
|
#define INPUT_DEFAULT_DRIVER INPUT_SDL
|
2011-11-30 16:24:18 +00:00
|
|
|
#elif defined(__CELLOS_LV2__)
|
|
|
|
#define INPUT_DEFAULT_DRIVER INPUT_PS3
|
2011-12-14 12:20:22 +00:00
|
|
|
#elif defined(GEKKO)
|
|
|
|
#define INPUT_DEFAULT_DRIVER INPUT_WII
|
2011-03-13 03:51:09 +00:00
|
|
|
#elif defined(HAVE_XVIDEO)
|
|
|
|
#define INPUT_DEFAULT_DRIVER INPUT_X
|
2011-05-11 15:52:16 +00:00
|
|
|
#else
|
2012-02-11 19:59:41 +00:00
|
|
|
#error "Need at least one input driver."
|
2011-03-13 03:51:09 +00:00
|
|
|
#endif
|
2010-12-22 14:58:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
////////////////
|
|
|
|
// Video
|
|
|
|
////////////////
|
|
|
|
|
|
|
|
// Windowed
|
2011-10-16 19:36:17 +00:00
|
|
|
static const float xscale = 3.0; // Real x res = aspect * base_size * xscale
|
|
|
|
static const float yscale = 3.0; // Real y res = base_size * yscale
|
2010-12-22 14:58:43 +00:00
|
|
|
|
|
|
|
// Fullscreen
|
2010-12-29 19:05:57 +00:00
|
|
|
static const bool fullscreen = false; // To start in Fullscreen or not
|
2011-02-28 15:59:31 +00:00
|
|
|
static const unsigned fullscreen_x = 0; // Fullscreen resolution. A value of 0 uses the desktop resolution.
|
|
|
|
static const unsigned fullscreen_y = 0;
|
2010-12-22 14:58:43 +00:00
|
|
|
|
2011-04-21 11:12:45 +00:00
|
|
|
// Force 16-bit colors.
|
|
|
|
static const bool force_16bit = false;
|
|
|
|
|
2011-08-07 13:00:34 +00:00
|
|
|
// Forcibly disable composition. Only valid on Windows Vista/7 for now.
|
|
|
|
static const bool disable_composition = false;
|
|
|
|
|
2010-12-22 14:58:43 +00:00
|
|
|
// Video VSYNC (recommended)
|
|
|
|
static const bool vsync = true;
|
|
|
|
|
|
|
|
// Smooths picture
|
2010-12-24 00:00:34 +00:00
|
|
|
static const bool video_smooth = true;
|
2010-12-22 14:58:43 +00:00
|
|
|
|
|
|
|
// On resize and fullscreen, rendering area will stay 4:3
|
|
|
|
static const bool force_aspect = true;
|
|
|
|
|
2012-04-15 15:36:09 +00:00
|
|
|
// Controls aspect ratio handling.
|
|
|
|
static const float aspect_ratio = -1.0; // Automatic
|
|
|
|
static const bool aspect_ratio_auto = false; // 1:1 PAR
|
|
|
|
|
2011-05-05 12:13:12 +00:00
|
|
|
// Crop overscanned frames (7/8 or 15/15 for interlaced frames).
|
2011-11-09 21:18:48 +00:00
|
|
|
static const bool crop_overscan = true;
|
2011-05-05 12:13:12 +00:00
|
|
|
|
2011-01-23 01:48:06 +00:00
|
|
|
// Font size for on-screen messages.
|
|
|
|
static const unsigned font_size = 48;
|
2012-01-11 21:52:25 +00:00
|
|
|
// Attempt to scale the font size.
|
|
|
|
// The scale factor will be window_size / desktop_size.
|
|
|
|
static const bool font_scale = true;
|
2011-01-23 01:48:06 +00:00
|
|
|
|
2011-01-23 01:59:44 +00:00
|
|
|
// Offset for where messages will be placed on-screen. 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;
|
|
|
|
static const float message_pos_offset_y = 0.05;
|
2011-09-05 15:00:28 +00:00
|
|
|
// Color of the message.
|
2011-10-06 17:10:01 +00:00
|
|
|
static const uint32_t message_color = 0xffff00; // RGB hex value.
|
2011-01-23 01:59:44 +00:00
|
|
|
|
2011-03-06 17:19:31 +00:00
|
|
|
// Render-to-texture before rendering to screen (multi-pass shaders)
|
|
|
|
static const bool render_to_texture = false;
|
|
|
|
static const float fbo_scale_x = 2.0;
|
|
|
|
static const float fbo_scale_y = 2.0;
|
|
|
|
static const bool second_pass_smooth = true;
|
|
|
|
|
2011-08-11 03:25:31 +00:00
|
|
|
// Record video assuming game runs hi-res.
|
|
|
|
static const bool hires_record = false;
|
|
|
|
|
2012-03-02 21:19:49 +00:00
|
|
|
// Enables lossless RGB H.264 recording if possible (if not, FFV1 is used).
|
|
|
|
static const bool h264_record = true;
|
|
|
|
|
2011-08-11 03:25:31 +00:00
|
|
|
// Record post-filtered (CPU filter) video rather than raw SNES output.
|
|
|
|
static const bool post_filter_record = false;
|
|
|
|
|
2011-11-09 23:15:41 +00:00
|
|
|
// OSD-messages
|
|
|
|
static const bool font_enable = true;
|
|
|
|
|
2011-11-18 14:14:56 +00:00
|
|
|
// The accurate refresh rate of your monitor (Hz).
|
|
|
|
// This is used to calculate audio input rate with the formula:
|
|
|
|
// audio_input_rate = game_input_rate * display_refresh_rate / game_refresh_rate.
|
|
|
|
// If the implementation does not report any values,
|
|
|
|
// SNES NTSC defaults will be assumed for compatibility.
|
|
|
|
// This value should stay close to 60Hz to avoid large pitch changes.
|
|
|
|
// If your monitor does not run at 60Hz, or something close to it, disable VSync,
|
|
|
|
// and leave this at its default.
|
2011-12-14 20:44:03 +00:00
|
|
|
#if defined(__CELLOS_LV2__) || defined(XENON) || defined(GEKKO)
|
2011-12-02 14:59:07 +00:00
|
|
|
static const float refresh_rate = 59.92;
|
|
|
|
#else
|
2011-11-18 14:14:56 +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
|
|
|
|
2012-04-01 14:12:04 +00:00
|
|
|
// Allow games to set rotation. If false, rotation requests are honored, but ignored.
|
|
|
|
// Used for setups where one manually rotates the monitor.
|
|
|
|
static const bool allow_rotate = true;
|
|
|
|
|
2010-12-22 14:58:43 +00:00
|
|
|
////////////////
|
|
|
|
// Audio
|
|
|
|
////////////////
|
|
|
|
|
|
|
|
// 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
|
|
|
|
|
|
|
// Output samplerate
|
|
|
|
static const unsigned out_rate = 48000;
|
|
|
|
|
2011-01-29 17:42:21 +00:00
|
|
|
// When changing input rate on-the-fly
|
|
|
|
static const float audio_rate_step = 0.25;
|
2010-12-22 14:58:43 +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
|
|
|
|
|
|
|
// Desired audio latency in milliseconds. Might not be honored if driver can't provide given latency.
|
|
|
|
static const int out_latency = 64;
|
|
|
|
|
|
|
|
// Will sync audio. (recommended)
|
|
|
|
static const bool audio_sync = true;
|
|
|
|
|
2012-02-14 00:16:37 +00:00
|
|
|
// Experimental rate control
|
|
|
|
static const bool rate_control = false;
|
|
|
|
|
|
|
|
// Rate control delta. Defines how much rate_control is allowed to adjust input rate.
|
|
|
|
static const float rate_control_delta = 0.005;
|
|
|
|
|
|
|
|
//////////////
|
|
|
|
// Misc
|
|
|
|
//////////////
|
|
|
|
|
2011-01-31 17:06:57 +00:00
|
|
|
// Enables use of rewind. This will incur some memory footprint depending on the save state buffer.
|
|
|
|
// This rewind only works when using bSNES core atm.
|
|
|
|
static const bool rewind_enable = false;
|
|
|
|
|
|
|
|
// The buffer size for the rewind buffer. This needs to be about 15-20MB per minute. Very game dependant.
|
|
|
|
static const unsigned rewind_buffer_size = 20 << 20; // 20MiB
|
|
|
|
|
2011-02-01 16:30:18 +00:00
|
|
|
// How many frames to rewind at a time.
|
|
|
|
static const unsigned rewind_granularity = 1;
|
|
|
|
|
2011-02-05 20:45:44 +00:00
|
|
|
// Pause gameplay when gameplay loses focus.
|
2011-11-17 20:17:29 +00:00
|
|
|
static const bool pause_nonactive = false;
|
2010-12-22 14:58:43 +00:00
|
|
|
|
2011-02-10 20:16:59 +00:00
|
|
|
// Saves non-volatile SRAM at a regular interval. It is measured in seconds. A value of 0 disables autosave.
|
|
|
|
static const unsigned autosave_interval = 0;
|
|
|
|
|
2011-02-20 11:12:53 +00:00
|
|
|
// When being client over netplay, use keybinds for player 1 rather than player 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
|
|
|
|
2011-09-16 13:32:21 +00:00
|
|
|
// On save state load, block SRAM from being overwritten.
|
|
|
|
// This could potentially lead to buggy games.
|
|
|
|
static const bool block_sram_overwrite = false;
|
|
|
|
|
2011-09-27 13:31:25 +00:00
|
|
|
// When saving savestates, state index is automatically incremented before saving.
|
|
|
|
// When the ROM is loaded, state index will be set to the highest existing value.
|
|
|
|
static const bool savestate_auto_index = false;
|
|
|
|
|
2012-03-04 11:01:07 +00:00
|
|
|
// Slowmotion ratio.
|
|
|
|
static const float slowmotion_ratio = 3.0;
|
|
|
|
|
2010-12-22 14:58:43 +00:00
|
|
|
|
|
|
|
////////////////////
|
|
|
|
// Keybinds, Joypad
|
|
|
|
////////////////////
|
|
|
|
|
|
|
|
// 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
|
|
|
|
|
|
|
// To figure out which joypad buttons to use, check jstest or similar.
|
2011-01-08 17:37:45 +00:00
|
|
|
// SDL sometimes reverses the axes for some odd reason, but hey. :D
|
2010-12-22 14:58:43 +00:00
|
|
|
|
|
|
|
// Player 1
|
|
|
|
static const struct snes_keybind snes_keybinds_1[] = {
|
2012-01-30 00:20:35 +00:00
|
|
|
// SNES button | keyboard key | js btn | js axis |
|
2012-04-07 09:55:37 +00:00
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_B, SK_z, NO_BTN, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_Y, SK_a, NO_BTN, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_SELECT, SK_RSHIFT, NO_BTN, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_START, SK_RETURN, NO_BTN, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_UP, SK_UP, NO_BTN, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_DOWN, SK_DOWN, NO_BTN, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_LEFT, SK_LEFT, NO_BTN, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_RIGHT, SK_RIGHT, NO_BTN, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_A, SK_x, NO_BTN, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_X, SK_s, NO_BTN, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_L, SK_q, NO_BTN, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_R, SK_w, NO_BTN, AXIS_NONE },
|
2012-01-30 00:20:35 +00:00
|
|
|
|
|
|
|
{ true, SSNES_FAST_FORWARD_KEY, SK_SPACE, NO_BTN, AXIS_NONE },
|
|
|
|
{ true, SSNES_FAST_FORWARD_HOLD_KEY, SK_l, NO_BTN, AXIS_NONE },
|
|
|
|
{ true, SSNES_LOAD_STATE_KEY, SK_F4, NO_BTN, AXIS_NONE },
|
|
|
|
{ true, SSNES_SAVE_STATE_KEY, SK_F2, NO_BTN, AXIS_NONE },
|
|
|
|
{ true, SSNES_FULLSCREEN_TOGGLE_KEY, SK_f, NO_BTN, AXIS_NONE },
|
|
|
|
{ true, SSNES_QUIT_KEY, SK_ESCAPE, NO_BTN, AXIS_NONE },
|
|
|
|
{ true, SSNES_STATE_SLOT_PLUS, SK_F7, NO_BTN, AXIS_NONE },
|
|
|
|
{ true, SSNES_STATE_SLOT_MINUS, SK_F6, NO_BTN, AXIS_NONE },
|
|
|
|
{ true, SSNES_AUDIO_INPUT_RATE_PLUS, SK_KP_PLUS, NO_BTN, AXIS_NONE },
|
|
|
|
{ true, SSNES_AUDIO_INPUT_RATE_MINUS, SK_KP_MINUS, NO_BTN, AXIS_NONE },
|
|
|
|
{ true, SSNES_REWIND, SK_r, NO_BTN, AXIS_NONE },
|
|
|
|
{ true, SSNES_MOVIE_RECORD_TOGGLE, SK_o, NO_BTN, AXIS_NONE },
|
|
|
|
{ true, SSNES_PAUSE_TOGGLE, SK_p, NO_BTN, AXIS_NONE },
|
|
|
|
{ true, SSNES_FRAMEADVANCE, SK_k, NO_BTN, AXIS_NONE },
|
|
|
|
{ true, SSNES_RESET, SK_h, NO_BTN, AXIS_NONE },
|
|
|
|
{ true, SSNES_SHADER_NEXT, SK_m, NO_BTN, AXIS_NONE },
|
|
|
|
{ true, SSNES_SHADER_PREV, SK_n, NO_BTN, AXIS_NONE },
|
|
|
|
{ true, SSNES_CHEAT_INDEX_PLUS, SK_y, NO_BTN, AXIS_NONE },
|
|
|
|
{ true, SSNES_CHEAT_INDEX_MINUS, SK_t, NO_BTN, AXIS_NONE },
|
|
|
|
{ true, SSNES_CHEAT_TOGGLE, SK_u, NO_BTN, AXIS_NONE },
|
|
|
|
{ true, SSNES_SCREENSHOT, SK_PRINT, NO_BTN, AXIS_NONE },
|
|
|
|
{ true, SSNES_DSP_CONFIG, SK_c, NO_BTN, AXIS_NONE },
|
|
|
|
{ true, SSNES_MUTE, SK_F9, NO_BTN, AXIS_NONE },
|
|
|
|
{ true, SSNES_NETPLAY_FLIP, SK_i, NO_BTN, AXIS_NONE },
|
2012-03-04 11:01:07 +00:00
|
|
|
{ true, SSNES_SLOWMOTION, SK_e, NO_BTN, AXIS_NONE },
|
2010-12-22 14:58:43 +00:00
|
|
|
};
|
|
|
|
|
2011-05-18 12:07:31 +00:00
|
|
|
// Player 2-5
|
|
|
|
static const struct snes_keybind snes_keybinds_rest[] = {
|
2012-04-07 09:55:37 +00:00
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_B, SK_UNKNOWN, NO_BTN, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_Y, SK_UNKNOWN, NO_BTN, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_SELECT, SK_UNKNOWN, NO_BTN, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_START, SK_UNKNOWN, NO_BTN, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_UP, SK_UNKNOWN, NO_BTN, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_DOWN, SK_UNKNOWN, NO_BTN, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_LEFT, SK_UNKNOWN, NO_BTN, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_RIGHT, SK_UNKNOWN, NO_BTN, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_A, SK_UNKNOWN, NO_BTN, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_X, SK_UNKNOWN, NO_BTN, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_L, SK_UNKNOWN, NO_BTN, AXIS_NONE },
|
|
|
|
{ true, RETRO_DEVICE_ID_JOYPAD_R, SK_UNKNOWN, NO_BTN, AXIS_NONE },
|
2010-12-22 14:58:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|