• Can this thing work as an XInput gamepad? Some notes about it

    Albert Gonzalez05/24/2021 at 19:58 0 comments

    Emulating a "regular" HID gamepad is cool but, it's possible to use V-USB to have a valid XInput device like the XBox Controllers?

    Those controllers are full-speed USB devices, and the only types the V-USB library can handle are the low-speed ones so, maybe... not...?

    Well, I tried a couple of things and manage to have a valid low-speed XInput device BUT with very limited support (only the "non-analogic" buttons). Also, I'm pretty sure this is a totally non-standard movement and it will eventually crash, fail or just stop working :_ D

    I wrote a post about this on my website with some aditional documentation, links and some code comments, so check it out if you're interested in it!

    (I'll add a new update if, at some point, I manage to have a more functional solution, but meanwhile I think this will be the last log for a while)

  • SNES Mini Controller now supported!

    Albert Gonzalez04/28/2021 at 11:43 0 comments

    I've added some changes to the code in order to handle a SNES Mini Controller too!

    Basically:

    • The gamepad is now a 12 buttons device, always (doesn't matter the Mini Controller you're using)
    • The report the usb device is sending is now a 2 bytes report instead of a 1 byte report (1 byte allows 8 buttons, 2 bytes allows up to 16)
    • Some "init operations" need to be done in order to initialize the SNES Mini Controller before reading the data. This can be done over the NES Mini Controller too (nothing happens).

    There's a TODO list on the github project with some extra details, known issues and improvements I have in mind, so check it out if you're interested! https://github.com/theisolinearchip/nesmini_usb_adapter/