RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    Single button disc cycling

    Scheduled Pinned Locked Moved General Discussion and Gaming
    raspberry pi
    2 Posts 2 Posters 283 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      JimmyWatson
      last edited by JimmyWatson

      I have installed a Raspberry Pi inside a Playstation Classic shell, and want the open button to cycle through the disc on multi-disc games. I can somewhat do this by setting hotkeys for opening virtual tray, inserting next disc, and closing virtual tray. The "problem" that I than run into, is that when I get to the last disc RetroArch doesn't loop back to the first disc, so if I want to go back to a previous disc, I have to exit RetroArch https://www.applock.ooo/
      Does anybody have an idea how I might get around this?

      1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator
        last edited by

        You can use the RetroArch network interface to send commands to RA through a script that's called when you press the button - http://docs.libretro.com/development/retroarch/network-control-interface/#enabling. It looks like the interface supports the 'Disk Next/Prev' commands so you can switch disks, but I don't see a command to get the current disk index. Maybe you parse the RA log to get the current disk index and determine if you need to go next/prev in the disk index list.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

        Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.