git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

SDL/configuration.c

      1 #include "configuration.h"
      2 
      3 configuration_t configuration =
      4 {
      5     .keys = {
      6         SDL_SCANCODE_RIGHT,
      7         SDL_SCANCODE_LEFT,
      8         SDL_SCANCODE_UP,
      9         SDL_SCANCODE_DOWN,
     10         SDL_SCANCODE_X,
     11         SDL_SCANCODE_Z,
     12         SDL_SCANCODE_BACKSPACE,
     13         SDL_SCANCODE_RETURN,
     14         SDL_SCANCODE_SPACE
     15     },
     16     .keys_2 = {
     17         SDL_SCANCODE_TAB,
     18         SDL_SCANCODE_LSHIFT,
     19     },
     20     .joypad_configuration = {
     21         13,
     22         14,
     23         11,
     24         12,
     25         0,
     26         1,
     27         9,
     28         8,
     29         10,
     30         4,
     31         -1,
     32         5,
     33         // The rest are unmapped by default
     34         -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
     35         -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
     36     },
     37     .joypad_axises = {
     38         0,
     39         1,
     40     },
     41     .color_correction_mode = GB_COLOR_CORRECTION_MODERN_BALANCED,
     42     .highpass_mode = GB_HIGHPASS_ACCURATE,
     43     .scaling_mode = GB_SDL_SCALING_INTEGER_FACTOR,
     44     .blending_mode = GB_FRAME_BLENDING_MODE_ACCURATE,
     45     .rewind_length = 60 * 2,
     46     .model = MODEL_AUTO,
     47     .volume = 100,
     48     .rumble_mode = GB_RUMBLE_CARTRIDGE_ONLY,
     49     .default_scale = 2,
     50     .color_temperature = 10,
     51     .cgb_revision = GB_MODEL_CGB_E - GB_MODEL_CGB_0,
     52     .dmg_palette = 1, // Replacing the old default (0) as of 0.15.2
     53     .agb_revision = GB_MODEL_AGB_A,
     54     .rumble_strength = 8,
     55 };

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.