forked from a fork from a fork , w/e
Just to collect the patches for running PocketSNES on PocketCHIP and CHIP.
sudo apt install libsdl1.2-dev build-essential git --no-install-recommends
git clone https://github.com/buzztiaan/PocketSNES.git
cd PocketSNES
make
./PocketSNES /path/to/rom.sfc
Menu:
- cursor keys = UP/DOWN - ENABLE/DISABLE (option)
- i = SELECT (option)
- j = BACK
In-game:
- cursor keys = UP/DOWN/LEFT/RIGHT
- i = A
- j = B
- u = X
- h = Y
- v = START
- c = SELECT
- o = L
- k = R
- c+v (at once) = MENU
The keyboard controls are currently hard-coded in sal/linux/sal.c
. Find the following lines, change as desired and re-compile with make.
switch(event.key.keysym.sym) {
CASE(LCTRL, A);
CASE(LALT, B);
CASE(SPACE, X);
CASE(LSHIFT, Y);
CASE(TAB, L);
CASE(BACKSPACE, R);
CASE(RETURN, START);
CASE(ESCAPE, SELECT);
CASE(UP, UP);
CASE(DOWN, DOWN);
CASE(LEFT, LEFT);
CASE(RIGHT, RIGHT);
CASE(HOME, MENU);
default: break;
}