Tidied up config.h
This commit is contained in:
parent
a4b6c3d1ec
commit
0e50d35a0d
53
config.h
53
config.h
|
@ -26,22 +26,25 @@
|
||||||
#include "libsnes.hpp"
|
#include "libsnes.hpp"
|
||||||
#include "driver.h"
|
#include "driver.h"
|
||||||
|
|
||||||
#define SAVE_STATE_KEY GLFW_KEY_F2
|
|
||||||
#define LOAD_STATE_KEY GLFW_KEY_F4
|
|
||||||
|
|
||||||
#define TOGGLE_FULLSCREEN 'F'
|
|
||||||
|
|
||||||
|
|
||||||
//////////// Drivers
|
|
||||||
|
///////////////// Drivers
|
||||||
#define VIDEO_GL 0
|
#define VIDEO_GL 0
|
||||||
|
////////////////////////
|
||||||
#define AUDIO_RSOUND 1
|
#define AUDIO_RSOUND 1
|
||||||
#define AUDIO_OSS 2
|
#define AUDIO_OSS 2
|
||||||
#define AUDIO_ALSA 3
|
#define AUDIO_ALSA 3
|
||||||
|
////////////////////////
|
||||||
|
|
||||||
|
// Chooses which video and audio subsystem to use. Remember to update config.mak if you change these.
|
||||||
#define VIDEO_DRIVER VIDEO_GL
|
#define VIDEO_DRIVER VIDEO_GL
|
||||||
#define AUDIO_DRIVER AUDIO_ALSA
|
#define AUDIO_DRIVER AUDIO_ALSA
|
||||||
|
|
||||||
static const bool force_aspect = true; // On resize and fullscreen, rendering area will stay 8:7
|
|
||||||
|
////////////////
|
||||||
|
// Video
|
||||||
|
////////////////
|
||||||
|
|
||||||
// Windowed
|
// Windowed
|
||||||
static const float xscale = 3.0; // Real x res = 256 * xscale
|
static const float xscale = 3.0; // Real x res = 256 * xscale
|
||||||
|
@ -54,13 +57,24 @@ static const unsigned fullscreen_y = 720;
|
||||||
|
|
||||||
// Video VSYNC (recommended)
|
// Video VSYNC (recommended)
|
||||||
static const bool vsync = true;
|
static const bool vsync = true;
|
||||||
static const bool video_smooth = true; // Smooths picture
|
|
||||||
|
|
||||||
|
// Smooths picture
|
||||||
|
static const bool video_smooth = true;
|
||||||
|
|
||||||
|
// On resize and fullscreen, rendering area will stay 8:7
|
||||||
|
static const bool force_aspect = true;
|
||||||
|
|
||||||
|
|
||||||
|
////////////////
|
||||||
// Audio
|
// Audio
|
||||||
static const unsigned out_rate = 44100;
|
////////////////
|
||||||
static const unsigned in_rate = 31950;
|
|
||||||
|
// Output samplerate
|
||||||
|
static const unsigned out_rate = 48000;
|
||||||
|
|
||||||
// Input samplerate from libSNES.
|
// Input samplerate from libSNES.
|
||||||
// Lower this if you are experiencing frequent audio dropouts and vsync is enabled.
|
// Lower this if you are experiencing frequent audio dropouts and vsync is enabled.
|
||||||
|
static const unsigned in_rate = 31950;
|
||||||
|
|
||||||
// Audio device. If NULL, will use defaults.
|
// Audio device. If NULL, will use defaults.
|
||||||
static const char* audio_device = NULL;
|
static const char* audio_device = NULL;
|
||||||
|
@ -68,8 +82,17 @@ static const char* audio_device = NULL;
|
||||||
// Desired audio latency in ms.
|
// Desired audio latency in ms.
|
||||||
static const int out_latency = 64;
|
static const int out_latency = 64;
|
||||||
|
|
||||||
// Keybinds
|
|
||||||
|
|
||||||
|
|
||||||
|
////////////////////
|
||||||
|
// Keybinds, Joypad
|
||||||
|
////////////////////
|
||||||
|
|
||||||
|
// To figure out which joypad buttons to use, check jstest or similar.
|
||||||
|
|
||||||
static const struct snes_keybind snes_keybinds[] = {
|
static const struct snes_keybind snes_keybinds[] = {
|
||||||
|
// SNES button | keyboard key | joypad button |
|
||||||
{ SNES_DEVICE_ID_JOYPAD_A, 'X', 1 },
|
{ SNES_DEVICE_ID_JOYPAD_A, 'X', 1 },
|
||||||
{ SNES_DEVICE_ID_JOYPAD_B, 'Z', 0 },
|
{ SNES_DEVICE_ID_JOYPAD_B, 'Z', 0 },
|
||||||
{ SNES_DEVICE_ID_JOYPAD_X, 'S', 3 },
|
{ SNES_DEVICE_ID_JOYPAD_X, 'S', 3 },
|
||||||
|
@ -85,5 +108,15 @@ static const struct snes_keybind snes_keybinds[] = {
|
||||||
{ -1 }
|
{ -1 }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
///// Save state
|
||||||
|
#define SAVE_STATE_KEY GLFW_KEY_F2
|
||||||
|
///// Load state
|
||||||
|
#define LOAD_STATE_KEY GLFW_KEY_F4
|
||||||
|
|
||||||
|
//// Toggles between fullscreen and windowed mode.
|
||||||
|
#define TOGGLE_FULLSCREEN 'F'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue