Comments (8)
Is there any progress on rumble support by chance?
from dualsense-ts.
@CaptainThrillsDev Not yet unfortunately. There's a bit of code stubbed out under src/hid/command.ts
that describes how the command packets are structured (credit to the python library and linux driver) but I never got around to deciding what the API should look like on this end.
I've been interested again lately so I'm up for spending some time on it. Just started a new branch to wrap up gyro/accelerometer support but I'll switch tracks for a bit and see if I can get this going.
I'll work on it this week and share an update by next weekend. If you're interested in giving it a shot I'd also be glad to see a new branch/PR!
from dualsense-ts.
I'll keep an eye out for your branch! (I'd love to work on it, but I have no idea where to start, I'm pretty good about picking things up and working with them, but creating from scratch can be a bit difficult)
from dualsense-ts.
It went a lot smoother than I hoped, so the branch is already up! #255
from dualsense-ts.
Can you publish an alpha version of the rumble support to npm? (Unless the PR is ready for merge). Curious to try it out
from dualsense-ts.
@CaptainThrillsDev I still need to work on browser support before I merge unfortunately. I'll try setting up a github action to publish an alpha package from the PR tonight or tomorrow! Could just do it from my laptop but it sounds fun to work into the CI workflow.
If you'd like to try the branch sooner, it should be easy to set up locally (may require at least node v18):
- Clone the branch
yarn install
yarn build
From there, you can use yarn debug
to run the node test script in this repo's utils/
directory. Or, if you'd like to import it into your own project, you can use yalc to publish the package locally.
yarn global add yalc
- From the root of the dualsense-ts repo, run
yalc publish
- From the root of your project, run
yalc add dualsense-ts
from dualsense-ts.
Running a little late on that, haven't gotten it working in the browser yet. I'll probably settle for releasing a node-hid only version soon.
from dualsense-ts.
@CaptainThrillsDev Released rumble support for node-hid on version ^5.1.0 👍
from dualsense-ts.
Related Issues (12)
- Node HID check for browser error
- Missing inputs from bumpers/triggers HOT 1
- Axis values mapped to wrong range
- Bad inputs in bluetooth mode HOT 1
- Gyro & Accelerometer support HOT 1
- "HID write failed: {}" error shows up after connecting gamepad in browser HOT 21
- Touchpad & Multitouch Support HOT 1
- Primary buttons and dpad conflict HOT 1
- Calling "removeAllListeners()" breaks most inputs
- Bumpers not working HOT 1
- Multiplayer support
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 dualsense-ts.