Mk_arcadejoystick, I need 16 buttons + analog.



  • I need help configuring the joystick to use more buttons + a 10bit ADC. (4)Dpad (6)ABC/XYZ buttons (2)Start/Select (4)L1/L2/R1/R2 +analog joystick(2 channels), I'm using the MCP3002, 8DIP 10bit ADC, which only has 2 analog channels. I'm using retropie, with the Mk_arcade_joystick_rpi 0.1.4, on a RPi2B. I'm trying to maximize controls for all emulators, including n64, psx, dreamcast(future) which uses dpad and analog sticks. If someone can tell me how to make this work, Please do let me know, i tried to configure the emulators to use both "gamepads" as 1, but that didn't work out, they'd all need to be on 1 gamepad. So if you could help me figure this out, and tell me how to connect it up, i'd appreciate it greatly.



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


Log in to reply
 

Want to support us ?

241
Online

81.4k
Users

22.2k
Topics

161.2k
Posts