So does anyone have any info that i can use? I looked into the mk_arcade_joystick_rpi.c file, and saw where it can be altered.. But i'm guessing it's not that easy, and i wouldn't know how to install the modified file anyways I guess i'd have to repack it into a deb file? I may even need more than 16 buttons. Maybe even 18, so i can have a couple buttons for the emulator menu for example. I don't need the 2nd controller, i just need 1 controller with a LOT of buttons and 2 gpio pins.
static const int mk_max_arcade_buttons = 16; // Map of the gpios : up, down, left, right, start, select, a, b, tr, y, x, tl, c, l2, z, r2 static const int mk_arcade_gpio_maps[] = {4, 17, 27, 22, 10, 9, 25, 24, 23, 18, 15, 14, 7, 8, 12, 16 }; // 2nd joystick on the b+ GPIOS up, down, left, right, start, select, a, b static const int mk_arcade_gpio_maps_bplus[] = {11, 5, 6, 13, 19, 26, 21, 20 };
Getting the analog into it using the MCP3002 2 channel ADC is another problem. It would actually be nice if we could get a GPIO controller that has a menu for reconfiguring it, so you can pick and choose the pins you use and for what, and the number of controllers. Edit: The GPIOs listed aren't set, since i think i'll need to switch some out, move some of the joystick 1 buttons to the joystick 2, so i can use the upper GPIOs for the ADC. Not 100% sure which ones will be used though.