Skip to content

Commit

Permalink
Merge pull request #105 from laamaa/87-edit_default_keymap
Browse files Browse the repository at this point in the history
#87 edit default keymap to resemble the hardware layout more
  • Loading branch information
laamaa authored Apr 19, 2023
2 parents 97d9fcc + f9d280e commit 3043cbc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
9 changes: 4 additions & 5 deletions config.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// Released under the MIT licence, https://opensource.org/licenses/MIT

#include "config.h"
#include "SDL_stdinc.h"
#include "ini.h"
#include <SDL.h>
#include <assert.h>
Expand Down Expand Up @@ -39,13 +38,13 @@ config_params_s init_config() {
c.key_down = SDL_SCANCODE_DOWN;
c.key_right = SDL_SCANCODE_RIGHT;
c.key_select = SDL_SCANCODE_LSHIFT;
c.key_select_alt = SDL_SCANCODE_A;
c.key_select_alt = SDL_SCANCODE_Z;
c.key_start = SDL_SCANCODE_SPACE;
c.key_start_alt = SDL_SCANCODE_S;
c.key_start_alt = SDL_SCANCODE_X;
c.key_opt = SDL_SCANCODE_LALT;
c.key_opt_alt = SDL_SCANCODE_Z;
c.key_opt_alt = SDL_SCANCODE_A;
c.key_edit = SDL_SCANCODE_LCTRL;
c.key_edit_alt = SDL_SCANCODE_X;
c.key_edit_alt = SDL_SCANCODE_S;
c.key_delete = SDL_SCANCODE_DELETE;
c.key_reset = SDL_SCANCODE_R;

Expand Down
8 changes: 4 additions & 4 deletions config.ini.sample
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ key_left=80
key_down=81
key_right=79
key_select=225
key_select_alt=4
key_select_alt=29
key_start=44
key_start_alt=22
key_start_alt=27
key_opt=226
key_opt_alt=29
key_opt_alt=4
key_edit=224
key_edit_alt=27
key_edit_alt=22
key_delete=76
key_reset=21

Expand Down

0 comments on commit 3043cbc

Please sign in to comment.