RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    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

    Hide Cursor functions using startx or XINIT?

    Scheduled Pinned Locked Moved Help and Support
    mgba
    5 Posts 3 Posters 963 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.
    • retropieuser555R
      retropieuser555
      last edited by

      Hi all,

      So I've been playing around with the standalone mgba emulator to try and compile that for RetroPie (https://github.com/mgba-emu/mgba/issues/1081 the answer is in here btw)

      But I've run into a snag, when I boot the emulator with startx or xinit, the cursor appears and I can't get rid of it unless I move the mouse away. I've tried adding -- -no cursor but it doesn't seem to work. Am I using the function correctly? This is what I'm using in my emulators.cfg file.

      mgba = "XINIT:/usr/local/bin/mgba-qt -f -l 0 %ROM% -nocursor"
      

      Pi 5 4GB

      Retroflag GPI with raspberry pi zero 2 w/ wifi

      Retroachievements:- lovelessrapture

      SuperFromNDS 1 Reply Last reply Reply Quote 0
      • SuperFromNDS
        SuperFromND @retropieuser555
        last edited by

        @retropieuser555 Have you tried this?

        mgba = "XINIT:/usr/local/bin/mgba-qt -f -l 0 %ROM% -- -nocursor"
        

        (note the extra -- to denote passing the command to xinit and not mgba-qt)

        ▲▼▲▼▲▼▲▼▲▼
        IKEMEN Go
        SRB2Kart
        ▼▲▼▲▼▲▼▲▼▲

        retropieuser555R 2 Replies Last reply Reply Quote 1
        • retropieuser555R
          retropieuser555 @SuperFromND
          last edited by

          @superfromnd Yeah I'll double check but I think when I tried with this it wouldn't boot. But I might've made a mistake and put the -- - no cursor outside the speech marks

          Pi 5 4GB

          Retroflag GPI with raspberry pi zero 2 w/ wifi

          Retroachievements:- lovelessrapture

          1 Reply Last reply Reply Quote 0
          • retropieuser555R
            retropieuser555 @SuperFromND
            last edited by retropieuser555

            @superfromnd So I tried this but the rom doesn't load, it boots to the emulator itself and I have to select the rom from the emulator GUI. It loaded the rom before without -- - nocursor. I also tried putting the %ROM% at the end but that didn't work either.

            Any ideas?

            Pi 5 4GB

            Retroflag GPI with raspberry pi zero 2 w/ wifi

            Retroachievements:- lovelessrapture

            DirtBagXonD 1 Reply Last reply Reply Quote 0
            • DirtBagXonD
              DirtBagXon @retropieuser555
              last edited by

              @retropieuser555 said in Hide Cursor functions using startx or XINIT?:

              @superfromnd So I tried this but the rom doesn't load, it boots to the emulator itself and I have to select the rom from the emulator GUI. It loaded the rom before without -- - nocursor. I also tried putting the %ROM% at the end but that didn't work either.

              Any ideas?

              Maybe not the answer you where after, but try installing unclutter and setting a timeout of 1s.

              Hypseus Singe for RetroPie: https://github.com/DirtBagXon/hypseus-singe
              Hypseus Singe Games: https://github.com/DirtBagXon/hypseus_singe_data
              Hypseus Discord: https://discord.gg/dgCsCfmRfJ

              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.