Mednafen Members Members   Search Search   Help Help   Register Register   Login Login   Home Home
Home » Mednafen » Development » Pop'n Music controller support?
Show: Today's Messages  :: Show Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Pop'n Music controller support? [message #6349] Wed, 09 December 2020 01:35 Go to next message
tjbautista01  [PM]
Any chance there would be support for Pop'n Music controllers for PlayStation? Just using 'gamepad' won't work as the pop'n controller has D-Pad Left, Down, and Right shorted out in order for the PnM games to detect the controller plugged in as a Pop'n controller.

For additional information, the PS2 beatmania IIDX games also utilize the same combination to detect if a pop'n controller is connected so it can remap inputs accordingly.

For reference, here is the default mapping for a pop'n controller:
(source: https://www2.gvsu.edu/brittedg/pnmcontroller.pdf)
https://user-images.githubusercontent.com/63538745/101570188-d86f6980-3a10-11eb-8e9a-f8ffe50cd576.png

When plugged in a PS to USB adapter, this is what's shown in default mode:
https://user-images.githubusercontent.com/63538745/101570413-516ec100-3a11-11eb-957a-89c22dd1cc07.png

When Dance Pad mode is enabled (LDUR is mapped as buttons 1234 respectively) this is what's shown:
https://user-images.githubusercontent.com/63538745/101570597-bde9c000-3a11-11eb-9f7b-c669df230c97.png
Re: Pop'n Music controller support? [message #6669 is a reply to message #6349 ] Mon, 14 March 2022 13:36 Go to previous messageGo to next message
marcriera  [PM]
This is also the case for "Densha de GO!" controllers. Internally, they are standard digital gamepads, but with Up and Down in the D-Pad permanently pressed so the games know it is a special controller. Despite external physical differences, all models are the same (SLPH-00051, TCPP-20001, TCPP-20002 and TCPP-20008).

I did the test of tweaking the gamepad code in src/psx/input/gamepad.cpp to allow opposite D-Pad directions simultaneously and I can confirm all Densha de GO! games recognize a real controller using a USB adapter. The Pop'n Music controllers should also work.

I can imagine two ways of implementing this in Mednafen:

1. Add a new gamepad type based on the digital gamepad with D-Pad restrictions removed. This would allow Pop'n Music and Densha de GO! controllers to work. They could share the gamepad type.

2. Remove the restrictions from the standard digital gamepad. Technically, the input data from a standard digital gamepad allows this, but the hardware prevents this (not sure if just the D-Pad plastic or also the internal board). Of course, other games may behave weirdly.

I'll be happy to help and submit a patch to implement this (whichever method is better) Wink
Re: Pop'n Music controller support? [message #6672 is a reply to message #6669 ] Wed, 16 March 2022 19:42 Go to previous messageGo to next message
Yuri Bacon  [PM]
I can tell you off the top of my head that the dpad in every PS dpad ever has a plastic pivot point that prevents SOCD inputs.

I happen to have a digital pad near me that was disassembled (meant to clean it nearly a month ago, but never did or put it back together), so I checked on my raphnet real quick, and pressing down the dpad rubber directly I do get SOCD inputs from the controller (I had my raphnet set to send dpad as button inputs), so its only a physical limitation, no SOCD cleaning on the board itself.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
she/her
Use my mednafen servers? Contact me! https://discord.gg/ngZuC9c8Wr
Play Digimon Rumble Arena: https://discord.gg/wg5j5Np
Re: Pop'n Music controller support? [message #6673 is a reply to message #6669 ] Wed, 16 March 2022 19:44 Go to previous messageGo to next message
Yuri Bacon  [PM]
Not a pop'n player, but I'd imagine that making a seperate entry that allows you to map "Left Yellow" or "Right Blue" directly to a given keyboard or controller button would probably be the most straight forward/intuitive way to do that, but I guess disabling SOCD, mapping a digital pad with a converter, then switching out to the pop'n controller would work too.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
she/her
Use my mednafen servers? Contact me! https://discord.gg/ngZuC9c8Wr
Play Digimon Rumble Arena: https://discord.gg/wg5j5Np
Re: Pop'n Music controller support? [message #6852 is a reply to message #6669 ] Thu, 09 February 2023 13:34 Go to previous messageGo to next message
tjbautista01  [PM]
(Oh wow didn't realize this got replies two years later LMAO)

OK so regarding this, just a minor update but got a screenshot of the pop'n controller plugged into a PS2 running a pad test program and can confirm that yes said directional inputs are held down and the games expect that from a pop'n controller to map inputs properly (blue buttons are for selecting, red for decide).

index.php?t=getfile&id=1415&private=0

Consequence of said inputs not being detected will be that the games will only detect a standard controller plugged in and will have dedicated mappings for that (gamepad for navigation, circle for decide, ingame buttons depending on key config in options)

Re: Pop'n Music controller support? [message #7002 is a reply to message #6852 ] Wed, 10 January 2024 12:15 Go to previous message
Administrator  [PM]
Support added in version 1.32.0-UNSTABLE.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic:Virtual Boy MPYHW patch
Next Topic:Compiling mednafen for Windows
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ ]

Current Time: Sat May 4 21:34:14 CDT 2024
.:: Contact :: Home ::.

Powered by FUDforum.
Copyright © FUDforum Bulletin Board Software