Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

Controlling Whiptail with Controller Input



  • 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



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


 

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.