Announcement

Collapse
No announcement yet.

Remap controller input?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Remap controller input?

    Hey guys. Is there a way to remap the controller inputs in KDE? I tried jstest-gtk, which does let you do it, but it doesn't seem to affect KDE.

    The reason I want to do this is because I own two Windows games (Mark of the Ninja and Super Meat Boy) that have Xbox 360 controller support. I don't have one of those. I've tried my PS2 and SNES controllers, and neither of those match up with the 360's mapping, making playing the games either impossible or really awkward. And because their preset to use the 360 controller, they don't let you change the controller configuration. So if at all possible, I'd like to at least change how KDE reports the controller inputs to the game.

    #2
    It would depend on how they're mapped in the first place. If they're mapped as keyboards and/or mice then xmodmap would do it.

    Try opening xev in a terminal and putting the mouse cursor over the box and clicking on it, then pressing keys on the controller. If you get keycodes, you're in luck.

    Please Read Me

    Comment


      #3
      Originally posted by oshunluvr View Post
      It would depend on how they're mapped in the first place. If they're mapped as keyboards and/or mice then xmodmap would do it.

      Try opening xev in a terminal and putting the mouse cursor over the box and clicking on it, then pressing keys on the controller. If you get keycodes, you're in luck.
      They're mapped as joysticks, not keyboards or mice.

      I did the xev thing, and there was nothing when I hit the buttons.

      Jstest-gtk can remap the buttons, so I was just hoping there was something for KDE, since KDE doesn't seem to be affected by jstest-gtk.

      Comment


        #4
        Did you look at System Settings> Input Devices > Joysticks ?

        Please Read Me

        Comment


          #5
          Yeah, and it shows me pushing the buttons there. But I don't think that will let me remap the buttons. I tried dragging them around to no avail, and I didn't notice any option to edit anything.

          Comment


            #6
            I'm lost except to say that jstest works in kde so I can't imagine why jstest-gtk wouldn't. You have xpad installed
            and modprobed?

            Please Read Me

            Comment


              #7
              Originally posted by oshunluvr View Post
              I'm lost except to say that jstest works in kde so I can't imagine why jstest-gtk wouldn't. You have xpad installed
              and modprobed?
              The package manager says xpad is a sticky note app for X. So, no, I don't have that.

              A Google search shows that there was something called xpad for Xbox controllers. While I do have a USB adapter for an original Xbox controller, that's not what I'm using, so I have no idea about that.

              Comment


                #8
                Oh sorry, I just re-read the first post.

                maybe this is what you need?

                http://www.sthu.org/code/joydevmap.html

                Please Read Me

                Comment


                  #9
                  Originally posted by oshunluvr View Post
                  Oh sorry, I just re-read the first post.

                  maybe this is what you need?

                  http://www.sthu.org/code/joydevmap.html
                  I found qjoypad, which seems to be like joy2key. I hope this works better than trying to remap the actual joystick inputs.

                  Comment


                    #10
                    Yeah, I saw that one but it looked like it hadn't been updated since 2010 or so. Did you find a newer version?

                    Please Read Me

                    Comment


                      #11
                      Originally posted by oshunluvr View Post
                      Yeah, I saw that one but it looked like it hadn't been updated since 2010 or so. Did you find a newer version?
                      No, I just used the version on the site.

                      It looks neat, but it didn't help here. Mark of the Ninja did register the keyboard keys when I pushed the buttons, but it also registered the standard joystick input, so it wasn't any good. So I'm kind of stuck using the awkward controls, I guess. I just have to remember that A & B (X & Circle in this case) are swapped, X & Y (Square & Triangle) are swapped, the triggers (L2 & R2) are swapped with the bumpers (L1 & R1), and back & start (Select & Start) are swapped. (I have a 360, as well, so I'm familiar with the layout when compared to a DualShock, thus the prompts being swapped is confusing.)

                      That joydevmap and others like it may do exactly what I want, but I'd really like a GUI. I don't want to have to fiddle with config files or a command line.

                      Comment

                      Working...
                      X