Geca
Member
Hi, i've ported the old snes emu SNESGP2X to the Caanoo.
At the moment I need to remap the buttons, anyone can help me with this ? I don't know the key codes...
These are the gp2x keys:
I don't find any code to respond the analogic joy, only the buttons respond...
I try Super Mario World, the sound it's fine (the sound is a little low), the velocity is aceptable, a little slow but playable, I don't use overclock yet.
At the moment I need to remap the buttons, anyone can help me with this ? I don't know the key codes...
These are the gp2x keys:
Code:
if (joydown[0x00]) val |= SNES_UP_MASK;
if (joydown[0x02]) val |= SNES_LEFT_MASK;
if (joydown[0x04]) val |= SNES_DOWN_MASK;
if (joydown[0x06]) val |= SNES_RIGHT_MASK;
if ( (val & (SNES_UP_MASK | SNES_LEFT_MASK | SNES_DOWN_MASK | SNES_RIGHT_MASK)) == 0 ) {
if (joydown[0x01]) val |= SNES_LEFT_MASK | SNES_UP_MASK;
if (joydown[0x03]) val |= SNES_LEFT_MASK | SNES_DOWN_MASK;
if (joydown[0x05]) val |= SNES_RIGHT_MASK | SNES_DOWN_MASK;
if (joydown[0x07]) val |= SNES_RIGHT_MASK | SNES_UP_MASK;
}
if (joydown[0x08]) val |= SNES_START_MASK; // Button 'I'
if (joydown[0x09]) val |= SNES_SELECT_MASK; // Button 'II'
if (joydown[0x0A]) val |= SNES_TL_MASK;
if (joydown[0x0B]) val |= SNES_TR_MASK;
if (joydown[0x0C]) val |= SNES_A_MASK;
if (joydown[0x0D]) val |= SNES_B_MASK;
if (joydown[0x0E]) val |= SNES_X_MASK;
if (joydown[0x0F]) val |= SNES_Y_MASK;
I don't find any code to respond the analogic joy, only the buttons respond...
I try Super Mario World, the sound it's fine (the sound is a little low), the velocity is aceptable, a little slow but playable, I don't use overclock yet.