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

    #1 Controlling Whiptail with Controller Input 2019

    Scheduled Pinned Locked Moved General Discussion and Gaming
    controller
    2 Posts 2 Posters 159 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.
    • H
      huatrongkhang
      last edited by

      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

        There's no link to the code (?).
        RetroPie uses a helper (joy2key) to translate gamepad inputs to keyboard keys, interpreted by the dialog screens. You can use the joy2keystart and joy2keystop as wrappers for your script - see https://github.com/RetroPie/RetroPie-Setup/blob/master/scriptmodules/helpers.sh.

        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.