Giter Club home page Giter Club logo

Comments (12)

orbea avatar orbea commented on May 28, 2024

xpad-2016.12.31_bd4f517_4.9.0_master-x86_64-1_git

I compiled the current git master and pleasantly found that this has already been fixed, thanks! I will close this now.

If you don't mind me asking, when is the current master supposed to be merged into the kernel?

from xpad.

cgutman avatar cgutman commented on May 28, 2024

Interesting. I guess it must be bd4f517. I was hoping to see if we could also get #48 fixed (likely with additional init packets) before going upstream with the patch. If we have to send more than 2 init packets, we'll need to do sequencing that would require rewriting the majority of the patch.

from xpad.

orbea avatar orbea commented on May 28, 2024

Thanks for the info, I'm more than happy to wait until you think its ready for it to be merged upstream. Also that is pretty good luck on my part that it was fixed the day before it came in the mail!

from xpad.

cgutman avatar cgutman commented on May 28, 2024

@orbea Can you try with this xpad.c to confirm it still works properly? http://pastebin.com/raw/Re8xby26

from xpad.

orbea avatar orbea commented on May 28, 2024

@cgutman I tried that xpad.c and I've encountered problems. Testing in sdl1-jstest, sdl2-jstest or RetroArch and the analog sticks will work at first, but quickly after changing to another program to test they will stop working. I'll have to test the master more to make sure this doesn't also happen there.

I don't see anything in dmesg.

from xpad.

orbea avatar orbea commented on May 28, 2024

It at least does not happen nearly as fast with the master, I will continue testing.

from xpad.

orbea avatar orbea commented on May 28, 2024

The git master certainly works.

from xpad.

cgutman avatar cgutman commented on May 28, 2024

Thanks, can you test my "for_upstream" branch? https://github.com/cgutman/xpad

If that works, may I add a "Tested-By: Firstname Lastname Email address" from you for my submission upstream?

from xpad.

orbea avatar orbea commented on May 28, 2024

@cgutman I tried your branch, it had the same result as before. The analog sticks work at first, but then quickly stop responding.

from xpad.

cgutman avatar cgutman commented on May 28, 2024

@orbea Ah, I think I understand the issue. Let me fixup my branch.

from xpad.

cgutman avatar cgutman commented on May 28, 2024

@orbea Please try again with my "for_upstream" branch. I've amended the patches with a fix for your issue.

Each time the device was opened, it was starting over from 0 in the sequence numbers in each packet. Your gamepad was rejecting the initialization packets after the first open because it wasn't expecting sequence numbers to start from 0 again.

from xpad.

orbea avatar orbea commented on May 28, 2024

@cgutman I have tried your branch again, this time the initial problem is gone.

However for reference this controller still has these two issues. #61 #62

from xpad.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.