Comments (7)
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.
@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.
@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.
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.
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.
Any progress on this? Would be appreciated, allot!
from dualshock.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dualshock.