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

    Controlling Whiptail with Controller Input

    Scheduled Pinned Locked Moved Ideas and Development
    developmentbash
    2 Posts 2 Posters 685 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.
    • Azza292A
      Azza292
      last edited by Azza292

      Hey everyone, I'm new here!

      I'm creating a online radio shell script using Whiptail for the GUI but I can not figure out how to get controller input working.

      I've had a look at the source code for the Retropie-Setup but I'm having no luck.

      Could someone please point me in the right direction?

      Current progress: radio.sh
      (Also please scrutinize my bash code, first time writing it)

      Cheers,

      Arran

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

        The RetroPie-Setup scripts use a helper script - joy2key - to navigate and enable buttons in dialog enabled scripts. Take a look here to see how it's started/stopped. You can source the RetroPie-Setup helper.sh or copy the functions you need from it in order to use it in your script.

        1 Reply Last reply Reply Quote 1
        • 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.