Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: Change RetroPie GPIO button coding to 1 press #3528
    bradj074
    Participant

    I tried Petrockblog’s most recent idea of entering two commands for key pressed to be able to use hotkeys and confirmed it does not work. I can get the GPIO button to function while holding down my function key on the gamepad but mapping two button commands to one command did not provide any results. Let me know if anyone else has any ideas so we can get this all figured out!

    in reply to: iso to .bin .cue #3435
    bradj074
    Participant

    Power Iso will do it no problem.

    http://www.poweriso.com/tutorials/convert-iso-to-bin.htm

    However recompiling bins from isos may not work correctly if at all depending on your source files. If you can make a source file as bin created directly from the disc it would be your best bet.

    in reply to: Change RetroPie GPIO button coding to 1 press #3423
    bradj074
    Participant

    i modified the SNESDev.c lines in the coding in several different ways and am not having any luck getting it to register correctly. I have confirmed the button itself functions with the original code so it is in my editing.

    I have pasted the modified code i tried that is the same method supersirlink said he had written in the interest of helping out both of us (i used the escape key instead of h). I left the shutdown command in and that will function if it gets those 5 key presses but for some reason it will not register any of the esc keys.

    Can you have a look at the coding and tell me how it should be properly coded?

    case BTN_STATE_PRESSED:
    if (button.pressedCtr == 1 && button.duration >= 1) {
    uinput_kbd_write(&uinp_kbd, KEY_ESC, 1, EV_KEY);
    }
    break;
    case BTN_STATE_RELEASED:
    if (button.pressedCtr == 1 && button.duration >= 1) {
    uinput_kbd_write(&uinp_kbd, KEY_ESC, 0, EV_KEY);
    } else if (button.pressedCtr == 3 && button.duration >= 1) {
    // Sending ESC
    uinput_kbd_write(&uinp_kbd, KEY_ESC, 1, EV_KEY);
    usleep(50000);
    uinput_kbd_write(&uinp_kbd, KEY_ESC, 0, EV_KEY);
    } else if (button.pressedCtr == 5 && button.duration >= 1) {
    uinput_kbd_write(&uinp_kbd, KEY_ESC, 1, EV_KEY);
    usleep(50000);
    uinput_kbd_write(&uinp_kbd, KEY_ESC, 0, EV_KEY);
    // shutting down
    system(“shutdown -t 3 -h now”);

    in reply to: Change RetroPie GPIO button coding to 1 press #3375
    bradj074
    Participant

    Awesome, thanks for the help. I’ve got it edited the way i need to.

    Now for my dumb question, how do i recompile and reinstall SNESDEV?

    in reply to: Both PSX & SNES Controllers in SNES Console? #3373
    bradj074
    Participant

    For the sake of anyone else coming across this subject, the SNES factory LED works automatically once the front panel is wired up into the GPIO with no problems.

    Still not sure on the ability of SNES & PSX controllers.

    in reply to: USB SNES adapter with RetroPie? #3194
    bradj074
    Participant

    I have one as well and haven’t had any luck getting it to work, waiting on the GPIO board to arrive. Did some browsing and from all the forums, popular consensus is to get the GPIO sold here, or a usb wired controller because this just doesn’t seem to work correctly with the pi. I’m assuming you also have trouble assigning part of the d-pad directions when calibrating the controls?

Viewing 6 posts - 1 through 6 (of 6 total)