1. ndeadly

    OP ndeadly GBAtemp Regular
    Member

    Joined:
    Nov 5, 2018
    Messages:
    198
    Country:
    Australia
    If you have any other means of pairing the controller and reading it's information, this may help. I just double-checked my source code and remembered that it uses the device name to decide which pincode to send. If your knockoff has some other name (official controllers begin with "Nintendo RVL"), then this would cause it to send the wrong pin and fail.

    Eventually I might implement pairing in my companion app to allow people to observe the process for diagnosing these kind of issues. For now, if you could extract this information via some other means I may be able to help you more quickly
     
    lordelan likes this.
  2. banjojohn

    banjojohn GBAtemp Regular
    Member

    Joined:
    Feb 17, 2007
    Messages:
    113
    Country:
    I don't know anything about it, but let me see if I can find anything that can read some data about it...
    If anyone knows a way, please let me know.

    Thanks for taking the time, btw.
     
  3. r5xscn

    r5xscn GBAtemp Regular
    Member

    Joined:
    Apr 8, 2014
    Messages:
    209
    Country:
    Antarctica
    Hello, here is my DS4 fix.
    if (src->input0x11.usb && src->input0x11.battery_level < 11)
    m_charging = true;
    else
    m_charging = false;
    m_battery = src->input0x11.battery_level*9/10;
    No longer crash even at max battery regardless of usb status.

    But...
    It still shows charging even when battery is full.
    https://android.googlesource.com/kernel/common.git/+/brillo-m9-release/drivers/hid/hid-sony.c
    That link above says DS4 should be:
    11 when charged and plugged in.
    9 max when on battery.

    But that seems to be not the case here.
    Directly plugging in the value to the m_battery will result in crash at max battery, even without usb plugged in. Setting the m_battery manually to 9 does not crash the switch. Hmm...

    I am a noob here and I am wondering if debugging is possible.
     
  4. ndeadly

    OP ndeadly GBAtemp Regular
    Member

    Joined:
    Nov 5, 2018
    Messages:
    198
    Country:
    Australia
    Saw your update on github. Will look over it and compare to how linux kernel handles it when I have time later today.

    I will make a build with logging enabled in the next few days to help people diagnosing issues
     
    r5xscn likes this.
  5. realg123

    realg123 GBAtemp Regular
    Member

    Joined:
    Aug 9, 2010
    Messages:
    201
    Country:
    Canada
    Great work, thank you
     
  6. cucholix

    cucholix Banners guy
    Member

    Joined:
    Jan 17, 2017
    Messages:
    2,621
    Country:
    Chile
    Is it compatible with DualShock 3? Thinking about import one
     
  7. ndeadly

    OP ndeadly GBAtemp Regular
    Member

    Joined:
    Nov 5, 2018
    Messages:
    198
    Country:
    Australia
    Not yet. Check out the FAQ for further info
     
    lordelan likes this.
  8. orma1

    orma1 Newbie
    Newcomer

    Joined:
    Aug 28, 2020
    Messages:
    1
    Country:
    Israel
    Works great, thanks!
    tested with a ps4 controller
     
    lordelan likes this.
  9. guily6669

    guily6669 GbaTemp is my Drug
    Member

    Joined:
    Jun 3, 2013
    Messages:
    1,911
    Country:
    United States
    I haven't read the whole thread... Is there any chance to use this on SX OS?

    I will probably eventually switch to atmosphere when it gets a fully completed release.

    Also is there any chance you can add a option to emulate the gamecube controller so that we can use analog triggers in the supported games like GRID??????????
     
  10. hippy dave

    hippy dave BBMB
    Member

    Joined:
    Apr 30, 2012
    Messages:
    6,531
    Country:
    United Kingdom
    Random thought, do controllers with analogue shoulder buttons have them recognised as such? Like they might work with Retroarch etc? Or are they treated like the Switch's standard digital buttons?

    E: hehe posted about analogue triggers at the same time someone else did :grog:
     
  11. ndeadly

    OP ndeadly GBAtemp Regular
    Member

    Joined:
    Nov 5, 2018
    Messages:
    198
    Country:
    Australia
    I am not an SXOS user and can't offer support, but I don't think anyone has got it working. Not much I can do about that. Not trying to alienate any users, just using the best tool for the job.

    I don't think the switch has any concept of analogue triggers so this probably isn't possible, at least not with regular switch software that reads its inputs through the hid module. It would be possible with homebrew if someone were willing to put in the effort to do the input handling manually, and use my btdrv-mitm module to steal the bluetooth events from the system. It's kinda cursed but it would work.
     
    lordelan, drrastovac and hippy dave like this.
  12. Rahkeesh

    Rahkeesh GBAtemp Advanced Maniac
    Member

    Joined:
    Apr 3, 2018
    Messages:
    1,901
    Country:
    United States
    It has the concept somewhere because there are a few racing games that can read analog trigger values from gamecube controllers. Not sure if that can apply to wireless though.
     
    Last edited by Rahkeesh, Aug 28, 2020
  13. nWo

    nWo The Game Master
    Member

    Joined:
    Oct 20, 2016
    Messages:
    590
    Country:
    Mexico
     
  14. thedizzy90

    thedizzy90 Member
    Newcomer

    Joined:
    Jan 9, 2020
    Messages:
    12
    Country:
    Canada
    Currently the code has Atmosphere libs dependencies until someone figures out how to do it without them no SX support (I'm a SXOS user myself)
     
  15. ndeadly

    OP ndeadly GBAtemp Regular
    Member

    Joined:
    Nov 5, 2018
    Messages:
    198
    Country:
    Australia
    Oh interesting, didn't know that. Got any further info? Which Gamecube controllers can be connected to the Switch?

    MissionControl is written with Atmoshere-libs because it's designed for exactly this kind of task. I'm sorry, I have nothing against the users, but it's not really my problem if TX can't/won't support it. They've proven themselves quite capable of taking Atmosphere code for their own in the past. If someone wants to figure out a way to make it work, or rewrite the project to remove the dependency, go for it. I have no intentions to rewrite it without, and no means to test whether it works regardless.
     
    lordelan, Hexalform, r5xscn and 4 others like this.
  16. thedizzy90

    thedizzy90 Member
    Newcomer

    Joined:
    Jan 9, 2020
    Messages:
    12
    Country:
    Canada
    Now all of a sudden the next version of SXOS have 3rd party wired and wireless controller support (missioncontrol and sys-con baked in) :rofl2::rofl2::rofl2:

    I think that regardless of what was written on missioncontrol is a great homebrew and an AWESOME CONTRIBUTION to the community. Kudos to you @ndeadly
    :grog::grog:


    They are a ton of avid devs out there including the TX people itself as you pointed out who could port it to SXOS.
     
    Last edited by thedizzy90, Aug 28, 2020
  17. drrastovac

    drrastovac Advanced Member
    Newcomer

    Joined:
    Apr 17, 2014
    Messages:
    72
    Country:
    Last edited by drrastovac, Aug 30, 2020
  18. MUDD_BR

    MUDD_BR GBAtemp Advanced Fan
    Member

    Joined:
    Nov 17, 2008
    Messages:
    662
    Country:
    Brazil
    Wow, you’re a genius sir, thank you so much!!! I almost buy a pro controller this week (it’s expensive as hell here).
     
    lordelan likes this.
  19. Cybereu

    Cybereu Member
    Newcomer

    Joined:
    Jun 12, 2020
    Messages:
    16
    Country:
    Brazil
    THANK YOU BRO !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     
    MUDD_BR likes this.
  20. MUDD_BR

    MUDD_BR GBAtemp Advanced Fan
    Member

    Joined:
    Nov 17, 2008
    Messages:
    662
    Country:
    Brazil
    It’s possible to, in future releases, that wiiu pro controller wake the switch?
     
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - MissionControl, controllers, Bluetooth