Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

DDR Dance Mat

Discussion in 'General Discussion' started by Sydious, Feb 6, 2014.

  1. Sydious

    Sydious

    Joined:
    Apr 1, 2010
    Posts:
    172
    So I have got it in my head, that I want to use a dance mat for a "joystick" in my project.

    I bought a PS3 DDR dance mat controller off amazon to use. (USB connection) http://www.amazon.com/gp/product/B0...pf_rd_t=101&pf_rd_p=1688200382&pf_rd_i=507846

    I used a application called JoyToKey to figure out what joystick buttons it is using.

    I have never used something like this before, and was a little surprised to see that the buttons that are used are not simply joystick button 1 thru 12.

    Instead it seems to be as follows:

    Joystick Button 1: Select Button
    Joystick Button 2: <not used?>
    Joystick Button 3: <not used?>
    Joystick Button 4: Start Button
    Joystick Button 5: Arrow Up (Forward)
    Joystick Button 6: Arrow Right
    Joystick Button 7: Arrow Down (Back)
    Joystick Button 8: Arrow Left
    Joystick Button 9: <not used?>
    Joystick Button10: <not used?>
    Joystick Button11: <not used?>
    Joystick Button12: <not used?>
    Joystick Button13: Triangle Button
    Joystick Button14: Circle Button
    Joystick Button15: 'X' Button
    Joystick Button16: Square Button
    Joystick Button17: Playstation Button

    So it seems to not use buttons 2,3,9,10,11, and 12.

    This doesn't seem like a big deal to me since you can map the buttons in unity that are used.

    I guess my confusion is that I thought there would be 12 buttons.

    up,down,left,right,X, O, Square, Triangle, Start, Select, and the PS button have been found as I list above.

    Does anyone know if there is a center button on dance mats? Am I missing something?

    I searched google trying to find a schematic or something for these things to no avail.

    It seems that a "standard" dance mat is referred to as a 9 button controller. Does that mean a center button should exist? Like a 3 x 3 grid of buttons? Or is it just 8 "direction" buttons and 1 start button.

    Anyone have any experience with these types of controllers that knows?

    Also do I need an app like JoyToKey running to map to unity? or will unity recognize Joystick button # without it?
     
    Last edited: Feb 6, 2014
  2. appmechanic

    appmechanic

    Joined:
    Sep 10, 2016
    Posts:
    14
    Hello

    Did you got any success for getting Dance Pad work with Unity?
     
  3. Amon

    Amon

    Joined:
    Oct 18, 2009
    Posts:
    1,366
    The OP started the thread nearly 9 years ago so I doubt it.
     
    lmbarns likes this.
  4. appmechanic

    appmechanic

    Joined:
    Sep 10, 2016
    Posts:
    14
    Yeah, Do you have any experience with similar stuff, getting Dance Pad work with a Unity Game?
     
  5. JeffersonFerreira

    JeffersonFerreira

    Joined:
    May 11, 2020
    Posts:
    5
    I have never used a dance pad before, but I think you can read the inputs from Unity's new InputSystem.
     
  6. stain2319

    stain2319

    Joined:
    Mar 2, 2020
    Posts:
    417
    Was this response generated by ChatGPT?
     
  7. JeffersonFerreira

    JeffersonFerreira

    Joined:
    May 11, 2020
    Posts:
    5
    It was that bad? :eek:
     
  8. lmbarns

    lmbarns

    Joined:
    Jul 14, 2011
    Posts:
    1,628
    If it connects over USB you use SerialPort to talk to it. You may have to try different baud rates to find the right one or look for a specification for your specific pad.

    Common baud rates are:
    9600
    57600
    115200
     
    JeffersonFerreira likes this.