Giter VIP home page Giter VIP logo

Comments (7)

audionerd avatar audionerd commented on August 16, 2024 2

main.cc requires Windows.h. It would need to be modified to handle other platforms.

Currently, building via node-gyp build on macOS fails with errors, e.g.:

../main.cc:18:26: error: unknown type name 'DWORD'
char *eCode(string name, DWORD hr) {
                         ^
../main.cc:19:2: error: unknown type name 'LPSTR'
        LPSTR buf = nullptr; size_t size = FormatMessageA(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM...
        ^
...

from dualshock.

Pecacheu avatar Pecacheu commented on August 16, 2024 1

@danimesq If I pick up a DualSense controller in the future I would love to add support for them and the new features I've heard cool stuff about, but I don't currently have one to test with, nor a PS5 which are still being scalped to hell and back at the moment.

That said I haven't abandoned the project I just didn't have any issues with it for my own purposes so I've been lazy, lol. If someone would open a pull request with fixes that would be excellent, otherwise I can look into this next time I have some time.

My modified node-hid lib is probably out of date by now anyhow.

from dualshock.

thomasklingbeil avatar thomasklingbeil commented on August 16, 2024

@Pecacheu I'm not sure if you receive notifications for new issues. Please let me know, if there is any way I can support.

from dualshock.

Pecacheu avatar Pecacheu commented on August 16, 2024

Sorry I never see these things... Github is a bit sparratic on notifying me, IDK why.

Anyway, the SBC is needed for audio and on some controllers rumble / LED. They seem to behave slightly differently so it depends on the revision I think. But yeah, they're usually better behaved with the SBC data.

But I remember it working on my Mac, I don't know why the SBC lib wont compile. Maybe I was using a different one at the time.

from dualshock.

Pecacheu avatar Pecacheu commented on August 16, 2024

Oh, it's probably because of HidD_Set_Output_Report. The modified version of node-hid I'm using has a second argument to hid.write, which uses HidD_Set_Output_Report to write the Bluetooth data instead of the normal WriteFile approach. From my understanding, it uses a special message type, which the DS4 is looking for.

The MacOS HID library probably has a similar function, but I don't know what that is. The node-hid fork I used only implemented the change on the windows version.

from dualshock.

KevinvBre avatar KevinvBre commented on August 16, 2024

Any progress on this? Would be appreciated, allot! 👍 I'm stuck at 3.1.1

from dualshock.

danimesq avatar danimesq commented on August 16, 2024

Its not a problem on GitHub's side; simply, @Pecacheu have abandonned this project.

This package still have a lot of potential, such as getting support to the DualSense gamepad.

from dualshock.

Related Issues (7)

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.