2010-05-26 19:27:37 +00:00
|
|
|
/// Config header for SSNES
|
|
|
|
//
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef __CONFIG_H
|
|
|
|
#define __CONFIG_H
|
|
|
|
|
2010-05-27 14:51:14 +00:00
|
|
|
#include <stdbool.h>
|
2010-05-26 19:27:37 +00:00
|
|
|
#include "libsnes.hpp"
|
2010-05-28 00:54:20 +00:00
|
|
|
#include "driver.h"
|
2010-05-26 19:27:37 +00:00
|
|
|
|
2010-05-26 19:41:57 +00:00
|
|
|
#define SAVE_STATE_KEY GLFW_KEY_F2
|
|
|
|
#define LOAD_STATE_KEY GLFW_KEY_F4
|
|
|
|
|
|
|
|
#define TOGGLE_FULLSCREEN 'F'
|
|
|
|
|
2010-05-28 11:53:54 +00:00
|
|
|
|
|
|
|
//////////// Drivers
|
|
|
|
#define VIDEO_GL 0
|
|
|
|
#define AUDIO_RSOUND 1
|
2010-05-28 12:33:18 +00:00
|
|
|
#define AUDIO_OSS 2
|
2010-05-28 13:41:38 +00:00
|
|
|
#define AUDIO_ALSA 3
|
2010-05-28 11:53:54 +00:00
|
|
|
|
|
|
|
#define VIDEO_DRIVER VIDEO_GL
|
2010-05-28 13:41:38 +00:00
|
|
|
#define AUDIO_DRIVER AUDIO_ALSA
|
2010-05-28 11:53:54 +00:00
|
|
|
|
2010-05-26 19:27:37 +00:00
|
|
|
static const bool force_aspect = true; // On resize and fullscreen, rendering area will stay 8:7
|
|
|
|
|
|
|
|
// Windowed
|
|
|
|
static const float xscale = 5.0; // Real x res = 256 * xscale
|
|
|
|
static const float yscale = 5.0; // Real y res = 224 * yscale
|
|
|
|
|
|
|
|
// Fullscreen
|
2010-05-26 19:41:57 +00:00
|
|
|
static bool fullscreen = false; // To start in Fullscreen on not
|
2010-05-26 19:27:37 +00:00
|
|
|
static const unsigned fullscreen_x = 1920;
|
|
|
|
static const unsigned fullscreen_y = 1200;
|
|
|
|
|
|
|
|
// Video VSYNC (recommended)
|
|
|
|
static const bool vsync = true;
|
|
|
|
|
2010-05-26 20:42:58 +00:00
|
|
|
// Audio
|
|
|
|
static const unsigned out_rate = 48000;
|
|
|
|
static const unsigned in_rate = 31950;
|
|
|
|
// Input samplerate from libSNES.
|
|
|
|
// Lower this if you are experiencing frequent audio dropouts and vsync is enabled.
|
|
|
|
|
2010-05-28 11:53:54 +00:00
|
|
|
// Audio device. If NULL, will use defaults.
|
|
|
|
static const char* audio_device = NULL;
|
|
|
|
|
|
|
|
// Desired audio latency in ms.
|
|
|
|
static const int out_latency = 64;
|
2010-05-28 00:45:18 +00:00
|
|
|
|
2010-05-26 19:27:37 +00:00
|
|
|
// Keybinds
|
|
|
|
static const struct snes_keybind snes_keybinds[] = {
|
|
|
|
{ SNES_DEVICE_ID_JOYPAD_A, 'X', 1 },
|
|
|
|
{ SNES_DEVICE_ID_JOYPAD_B, 'Z', 0 },
|
|
|
|
{ SNES_DEVICE_ID_JOYPAD_X, 'S', 3 },
|
|
|
|
{ SNES_DEVICE_ID_JOYPAD_Y, 'A', 2 },
|
|
|
|
{ SNES_DEVICE_ID_JOYPAD_L, 'Q', 4 },
|
|
|
|
{ SNES_DEVICE_ID_JOYPAD_R, 'W', 5 },
|
|
|
|
{ SNES_DEVICE_ID_JOYPAD_LEFT, GLFW_KEY_LEFT, 12 },
|
|
|
|
{ SNES_DEVICE_ID_JOYPAD_RIGHT, GLFW_KEY_RIGHT, 13 },
|
|
|
|
{ SNES_DEVICE_ID_JOYPAD_UP, GLFW_KEY_UP, 10 },
|
|
|
|
{ SNES_DEVICE_ID_JOYPAD_DOWN, GLFW_KEY_DOWN, 11 },
|
|
|
|
{ SNES_DEVICE_ID_JOYPAD_START, GLFW_KEY_ENTER, 6 },
|
|
|
|
{ SNES_DEVICE_ID_JOYPAD_SELECT, GLFW_KEY_RSHIFT, 14 },
|
|
|
|
{ -1 }
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|