1. Marianne Gagnon
  2. wxMupen64Plus
  3. Issues
Issue #91 new

[Windows] Input: some game pad buttons are ignored

DaVince
created an issue

I use a Playstation 2 controller (with a converter) to play my games. However, in the input configuration screen, I cannot set up some of the buttons (to be exact, the D-pad buttons). All other buttons work fine. The D-pad buttons are also mappable in other programs, so this seems to be a wxMupen64Plus issue.

Comments (7)

  1. Anonymous

    I am experiencing the same issue, except I am using an xbox 360 controller. All the buttons can be mapped except the DPAD. Thank you for your hard work. It's appreciated.

  2. DaVince reporter

    That seems to output this:

    Joystick 0: USB Joystick
           axes: 4
          balls: 0
           hats: 1
        buttons: 12
    

    I count 12 buttons on my PS2 controller, and the 4 axes are probably the two analog sticks. Is the D-pad supposed to be the hats? I do know for a fact that some software treats my D-pad and the left analog stick exactly the same, and some other software won't (but does detect it).

  3. Marianne Gagnon repo owner

    (Sorry for the late answer, my life has been a little hectic)

    After listing the gamepads, start again the application but this time providing it the ID of the gamepad

    SDLJoyTest.exe 0
    
  4. Anonymous

    Sorry for being a bit late too; wasn't in Windows so couldn't test there. (I can test in Arch Linux too if required)

    The buttons are properly detected, under the following values:

    There are 1 joysticks attached
    Joystick 0: USB Joystick
           axes: 4
          balls: 0
           hats: 1
        buttons: 12
    Watching joystick 0: (USB Joystick     )
    Joystick has 4 axes, 1 hats, 0 balls, and 12 buttons
    Joystick 0 hat 0 value: left
    Joystick 0 hat 0 value: centered
    Joystick 0 hat 0 value: up
    Joystick 0 hat 0 value: centered
    Joystick 0 hat 0 value: right
    Joystick 0 hat 0 value: centered
    Joystick 0 hat 0 value: down
    Joystick 0 hat 0 value: centered
    

    However, pressing the D-pad buttons does not move the white square around. My analog sticks are also properly detected, as indicated by this output:

    Joystick 0 axis 1 value: 780
    Joystick 0 axis 0 value: -30977
    Joystick 0 axis 1 value: 520
    Joystick 0 axis 0 value: -32768
    Joystick 0 axis 1 value: 2080
    Joystick 0 axis 1 value: 4420
    Joystick 0 axis 1 value: 6501
    Joystick 0 axis 0 value: 4681
    Joystick 0 axis 1 value: 0
    Joystick 0 axis 0 value: 780
    Joystick 0 axis 3 value: 780
    Joystick 0 axis 0 value: 2860
    Joystick 0 axis 3 value: 260
    Joystick 0 axis 3 value: 0
    Joystick 0 axis 3 value: 260
    Joystick 0 axis 3 value: 780
    Joystick 0 axis 3 value: 1040
    
  5. Adam Whalen

    Same problem: I'm using: http://stoneagegamer.com/pcmacusbn64controller.aspx

    SDLJoyTest output: C:\Users\XXXXXX\Desktop\SDLJoyTest-1.2.14>SDLJoyTest.exe 0 There are 1 joysticks attached Joystick 0: 10 button usb64 Controller axes: 4 balls: 0 hats: 1 buttons: 12 Watching joystick 0: (10 button usb64 Controller) Joystick has 4 axes, 1 hats, 0 balls, and 12 buttons Joystick 0 hat 0 value: up Joystick 0 hat 0 value: centered Joystick 0 hat 0 value: down Joystick 0 hat 0 value: centered Joystick 0 hat 0 value: left Joystick 0 hat 0 value: centered Joystick 0 hat 0 value: right Joystick 0 hat 0 value: centered Joystick 0 button 0 down Joystick 0 button 0 up Joystick 0 button 1 down Joystick 0 button 1 up Joystick 0 button 2 down Joystick 0 button 2 up Joystick 0 button 3 down Joystick 0 button 3 up Joystick 0 button 4 down Joystick 0 button 4 up Joystick 0 button 5 down Joystick 0 button 5 up Joystick 0 button 6 down Joystick 0 button 6 up Joystick 0 button 7 down Joystick 0 button 7 up Joystick 0 button 8 down Joystick 0 button 8 up Joystick 0 button 9 down Joystick 0 button 9 up Joystick 0 axis 1 value: -15361 Joystick 0 axis 1 value: -32768 Joystick 0 axis 1 value: -25089 Joystick 0 axis 1 value: -1 Joystick 0 axis 1 value: 14823 Joystick 0 axis 1 value: 21324 Joystick 0 axis 1 value: 32767 Joystick 0 axis 0 value: -7169 Joystick 0 axis 0 value: -7937 Joystick 0 axis 0 value: -7425 Joystick 0 axis 0 value: -1 Joystick 0 axis 1 value: 24705 Joystick 0 axis 1 value: -1 Joystick 0 axis 0 value: -27905 Joystick 0 axis 0 value: -32768 Joystick 0 axis 0 value: -25089 Joystick 0 axis 0 value: -1 Joystick 0 axis 0 value: 21844 Joystick 0 axis 0 value: 32767 Joystick 0 axis 0 value: 25225 Joystick 0 axis 0 value: -1


    clearly the controller works. Oddly enough in M64py, I can map the proper buttons but the key config wont hold once I start a game - it defaults to the keyboard inputs. Irrelevant to your project I know, but it does demonstrate that the controller works. It's an issue with wxMupen64Plus. Sadly, the only other actively developed front end is cutemupen - and you can't configure the inputs AT ALL on that one... can someone please help me!?!

  6. Log in to comment