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

    Mouse emulation using controller

    Scheduled Pinned Locked Moved Ideas and Development
    8 Posts 4 Posters 3.5k 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.
    • G
      guancio
      last edited by

      In order to play old retro-strategic games (e.g. simcity, warcraft, dune II, syndicate) from my couch I develop a small utility to emulate a mouse using a controller (in my case a PS3 controller).
      I published the first experiments here. Feel free to comments, ask for support or contribute.

      1 Reply Last reply Reply Quote 2
      • T
        Twitch0815
        last edited by

        @guancio Awesome looks great, Do you have access to a steam controller to try and replicate?

        1 Reply Last reply Reply Quote 0
        • G
          guancio
          last edited by

          No, but I'm using the same mechanism (uinput) used by https://github.com/ynsta/steamcontroller, so I guess that ynsta driver should work also on RetroPie

          1 Reply Last reply Reply Quote 0
          • Z
            Zigurana
            last edited by

            Hey, this is cool!
            Do I understand correctly you are using the analog joystick input to get direction and speed for the mouse pointer?

            I am wondering how this would work on a digital (arcade style) joystick. One would probably would like to have a speed modifier, so an extra button to move around faster / slower. Should be doable.

            If tetris has thought me anything, it's that errors pile up and that accomplishments dissappear.

            G 2 Replies Last reply Reply Quote 0
            • Z
              zerojay
              last edited by

              For Xbox controllers, xboxdrv apparently has similar functionality but I never really got it to work.

              1 Reply Last reply Reply Quote 0
              • G
                guancio @Zigurana
                last edited by

                @Zigurana Absolutely, I'll do some tests with my controller using the D-pad

                1 Reply Last reply Reply Quote 1
                • G
                  guancio @Zigurana
                  last edited by

                  @Zigurana I've uploaded a version that use the d-pad and has an accelaration/deceleration button

                  1 Reply Last reply Reply Quote 1
                  • Z
                    Zigurana
                    last edited by

                    Awesome!

                    If tetris has thought me anything, it's that errors pile up and that accomplishments dissappear.

                    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.