Snesgp2X For Caanoo


Geca

Member
Joined
Sep 6, 2010
Messages
338
Age
46
Location
Madrid, Spain
Website
www.gecasoft.no.sapo.pt
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:


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...

snesgp2xcaanoo1.jpg


snesgp2xcaanoo2.jpg



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.
 
Download the joystick app by zx-81 in this thread

http://www.gp32x.de/board/index.php?/topic/58895-usb-padjoytick-support/

it gives you a reading of the caanoo buttons and joystick, and the joysticks middle button when pressed, its in the zip of v1.1.2

Hope this helped in some way :p
 
Last edited by a moderator:
Take a look in here: http://www.gp32x.de/board/index.php?/topic/59429-gp-device-plugin/
 
Last edited by a moderator:
Back
Top