MegaPad Plugin !!!

Discussion in 'PS2 Plugin Questions & Plugin Troubleshooting' started by Luigi__, Sep 25, 2007.

  1. DaisukeJP

    DaisukeJP New Member

    Messages:
    69
    Likes Received:
    0
    Thx alot it works with 360 controller
  2. Luigi__

    Luigi__ Formerly NHervé Emu Author

    Messages:
    821
    Likes Received:
    6
    What are you meaning ?
  3. azoreseuropa

    azoreseuropa Active Member

    Messages:
    5,285
    Likes Received:
    0
    I tried with ver 1.3.3 to configure but it crashed on my pcsx2 0.9.5 SVN REV. 377
    Last edited: Jun 15, 2008
  4. Luigi__

    Luigi__ Formerly NHervé Emu Author

    Messages:
    821
    Likes Received:
    6
    Wait for version 1.4.0, it will be entirely rewritten.

    The earlier versions had so many bugs, especially throwing errors when there's no joystick (whereas they shouldn't, for keyboard players) and crashing for some users (they don't crash for me), that I decided to start the new version from a safe and clean new base.
    I also decided to use DirectInput because I wanted to add force feedback support, which SDL lacks, and also which the earlier versions lacked mostly, but I also decided it because I was bored by all the n00bs saying "the plugin said it could not find sdl.dll, what must I do ??? help me please", because they aren't even able to use Google.
    Last edited: Jun 15, 2008
  5. xester

    xester New Member

    Messages:
    17
    Likes Received:
    0
    this is true, is too easy to find that :s
  6. Luigi__

    Luigi__ Formerly NHervé Emu Author

    Messages:
    821
    Likes Received:
    6
    EDIT : What do you think about native XBOX 360 controller support for version 1.4.0 (without using XInput) ? If you would appreciate it, then I'll release a little app that will get packets from a XBOX 360 controller, and people that have such controllers will ahve to download it and tell me what the app said. Yes, I don't have any XBOX 360 controller, so I can't test myself.
  7. azoreseuropa

    azoreseuropa Active Member

    Messages:
    5,285
    Likes Received:
    0
    Ok. I will look forward for it soon. I am using PSX USB ADAPTER. :)
  8. Luigi__

    Luigi__ Formerly NHervé Emu Author

    Messages:
    821
    Likes Received:
    6
    Here is the test app. Plug your XBOX 360 controller to your PC, launch this and then report me the 20 bytes of data that the utility shown.
    Last edited: Jun 17, 2008
  9. Luigi__

    Luigi__ Formerly NHervé Emu Author

    Messages:
    821
    Likes Received:
    6
    6 downloads... Why the people that downloaded it doesn't report me the result ?
  10. powerzx

    powerzx New Member

    Messages:
    53
    Likes Received:
    0
    i got this message.
    "Hello. Trying to find a XBOX 360 controller on your computer.
    Warning ! Third party controllers may be not recognized.
    Device 0 : VID 045E PID 028E
    Could not find any XBOX 360 controller"

    i use win vista ultimate 64, original x360 joy connected, original drivers for x360 controller supplied with vista.
    i did not check with another drivers yet.
  11. Luigi__

    Luigi__ Formerly NHervé Emu Author

    Messages:
    821
    Likes Received:
    6
    Redownload the app, I corrected it.
  12. powerzx

    powerzx New Member

    Messages:
    53
    Likes Received:
    0
    C:\>xboxtest
    Hello. Trying to find a XBOX 360 controller on your computer.
    Warning ! Third party controllers may be not recoginzed.
    Device 0 : VID 045E PID 028E
    XBOX 360 controller found !!!
    Getting 20-byte packet from controller...
    85 37 40 00 00 00 71 02 09 00 00 00 00 08 00 00 00 00 00 00
    Thanks for using this software, now report these 20 bytes to NHervÚ.
  13. Luigi__

    Luigi__ Formerly NHervé Emu Author

    Messages:
    821
    Likes Received:
    6
    Redownload the app again (hopefully the last time). I've fixed it, now press any button on your controller, so the packet values will become correct, press Escape, take note of the 20 bytes in the last line, then press Escape again to exit the app.

    I attached the app here for visibility.
    Last edited: Jun 18, 2008
  14. powerzx

    powerzx New Member

    Messages:
    53
    Likes Received:
    0
    it looks like it works now (analog sticks are not centered)
    reading with no button pressed
    C5 37 40 00 00 00 4F 00 09 00 00 00 00 08 00 00 00 00 00 00
    "a" button pressed
    00 92 84 28 7B 13 7A AC 8B 00 80 01 00 80 FA 00 00 00 00 00
    ps.could you fix "writeln", so output is not scrolled.
  15. gabest

    gabest Emu author Award Winner!

    Messages:
    519
    Likes Received:
    0
    00 aa aa bb bb cc cc dd dd ee ff gg hh 00 ...

    aa aa: left stick horizontal, left 00 00, right ff ff (little endian)

    bb bb: left stick vertical, up 00 00, down ff ff (little endian)

    cc cc: right stick horizontal, left 00 00, right ff ff (little endian)

    dd dd: right stick vertical, up 00 00, down ff ff (little endian)

    ee: 00 or 80, couldn't figure out what it means, flips randomly when I press the trigger buttons, 00 when none is down

    ff: left trigger minus right trigger, left fully pressed: ff, right fully pressed 00, both or none pressed: 80 (works like directinput)

    gg: bitfields for buttons:

    bit 0: a (lsb)
    bit 1: b
    bit 2: x
    bit 3: y
    bit 4: lb
    bit 5: rb
    bit 6: back
    bit 7: start

    hh: more buttons, but a bit more tricky:

    bit 0: left stick
    bit 1: right stick
    bit 2-7: digital pad, going clockwise from 12 hour:

    0x04: up
    0x08: up/right
    0x0c: right
    0x10: down/right
    0x14: down
    0x18: down/left
    0x1c: left
    0x20: up/left
  16. Luigi__

    Luigi__ Formerly NHervé Emu Author

    Messages:
    821
    Likes Received:
    6
    Thanks a lot.
  17. Ali89

    Ali89 New Member

    Messages:
    3
    Likes Received:
    0
    question, does this work for windows and if so how do you install it? Do I put it into the plugin folder or the root folder?
  18. satanic666

    satanic666 -o-

    Messages:
    261
    Likes Received:
    0
    http://forums.ngemu.com/1198779-post1.html
    You should read this post and then you will get everything.
  19. Luigi__

    Luigi__ Formerly NHervé Emu Author

    Messages:
    821
    Likes Received:
    6
    Ali89 : What is this STUPID question ??? Are you doing this because :
    1. you want to increase your post count ?
    2. you're too lazy to read the documentation (first post) ? (if so, you won the Trophy of the laziest guy in the world !)
    3. you're stupid ? (if so, you won the Trophy of the most stupid guy in the world !)
  20. N4ch007

    N4ch007 Controller Freak

    Messages:
    165
    Likes Received:
    0
    NHervé, i wanted to try help you with the testing results, but as soon as i open the app it closes :/
    i´m on xp pro

Share This Page