Theoretical difficulty of adding Xbox 360 controller support to an app?

Discussion in 'Wii - Emulation and Homebrew' started by LeifEricson, Apr 19, 2014.

  1. LeifEricson
    OP

    LeifEricson Coming Soon™

    Member
    212
    165
    Jun 22, 2012
    United States
    New York, USA
    I'm a coding novice and have been writing a few small apps for Wii. In short, what would be the dificulty of coding support for Xbox 360 gamepads? Are there any libraries that can help? Or will a whole new driver need to be written in order to work...? Basically I'm looking for the challenge of the task, and figured this would be difficult.

    Thanks.
     
  2. DinohScene

    DinohScene Dino May Fire

    Member
    GBAtemp Patron
    DinohScene is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    15,633
    12,015
    Oct 11, 2011
    Antarctica
    В небо
    Only the wired ones would work.
    The 360 controller don't have bluetooth.
     
  3. FAST6191

    FAST6191 Techromancer

    pip Reporter
    23,199
    8,957
    Nov 21, 2005
    True but you could also build a USB adapter from a RROD 360. There is also stuff like http://maxbuy.cc/?page_id=1009

    Anyway I can not recall seeing any Wii homebrew programs claim 360 wired pad support. I would not be shocked to hear Wii linux has support though.
    There are plenty of open source drivers ( http://pingus.seul.org/~grumbel/xboxdrv/ ) and from what I have read it is a pretty standard USB (it works on a raspberry pi).

    However yeah you will probably end up porting drivers, the holy grail here would be adding it in at IOS level but that would be a serious hack.
     
  4. DinohScene

    DinohScene Dino May Fire

    Member
    GBAtemp Patron
    DinohScene is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    15,633
    12,015
    Oct 11, 2011
    Antarctica
    В небо
    I think it's easier to port the USB drivers over rather then to the RF to USB conversion ;p
     
  5. LeifEricson
    OP

    LeifEricson Coming Soon™

    Member
    212
    165
    Jun 22, 2012
    United States
    New York, USA
    I was recently looking at the Nintendont project -- would it be any harder coding support into that? (considering the Gamecube games running)
     
  6. tbgtbg

    tbgtbg Shaking the ring ropes up in the sky

    Member
    1,951
    448
    Nov 27, 2006
    United States
    You could try coding in PS3 controller support (definitely possible, as Devolution shows) then using a 360 to PS3 adapter like this.

    http://www.amazon.com/HDE®-Xbox-Playstation-Controller-Adapter/dp/B007SO06O6

    I in no way endorse or condemn that particular link or product, just an example of an adapter.

    However, this will still limit you to wired 360 controllers. And before anyone asks no a wireless controller + play and charge cord will not work.
     
  7. TecXero

    TecXero Technovert

    Member
    2,814
    906
    Apr 13, 2014
    United States
    Mainframe
    If you wanted to use a wireless 360 controller, I'd imagine it'd be easier to put a library together for this.

    http://www.amazon.com/Microsoft-Xbox-Wireless-Receiver-Windows-Pc/dp/B00E0OB7MW/ref=sr_1_1?s=videogames&ie=UTF8&qid=1397944784&sr=1-1&keywords=360 wireless controller adapter

    Either way, it would probably take a lot of work. You'd probably be better off finding an open source driver and trying to port it. Might be able to setup a windows driver in some sort of library wrapper. Even then, you'd have to get the source code of all the programs you want to use it with, set them up to work with the new library, then compile the program with the library. It seems like it'd be easier to just go grab a Classic Controller or Gamecube controller. But purely for a challenge, it'd be a bit of a task. If you want it to be especially difficult, setup a library for the wireless 360 controller adapter and include support to have the 360 chatpad act as a keyboard.
     
  8. LeifEricson
    OP

    LeifEricson Coming Soon™

    Member
    212
    165
    Jun 22, 2012
    United States
    New York, USA
    Thanks for all the replies. The Nintendont project already supports all HID controllers with a bit of modification of config files.

    The wired 360 controller however is not HID. Therefore I will see what I can do. Please note, Nintendon't doesn't even have Wiimote support outside of the initial game selection menu.
     
    Usman khan likes this.