Giter Club home page Giter Club logo

Comments (8)

CaptainThrillsDev avatar CaptainThrillsDev commented on June 19, 2024 1

Is there any progress on rumble support by chance?

from dualsense-ts.

nsfm avatar nsfm commented on June 19, 2024

@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.

CaptainThrillsDev avatar CaptainThrillsDev commented on June 19, 2024

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.

nsfm avatar nsfm commented on June 19, 2024

It went a lot smoother than I hoped, so the branch is already up! #255

from dualsense-ts.

CaptainThrillsDev avatar CaptainThrillsDev commented on June 19, 2024

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.

nsfm avatar nsfm commented on June 19, 2024

@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):

  1. Clone the branch
  2. yarn install
  3. 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.

  1. yarn global add yalc
  2. From the root of the dualsense-ts repo, run yalc publish
  3. From the root of your project, run yalc add dualsense-ts

from dualsense-ts.

nsfm avatar nsfm commented on June 19, 2024

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.

nsfm avatar nsfm commented on June 19, 2024

@CaptainThrillsDev Released rumble support for node-hid on version ^5.1.0 👍

from dualsense-ts.

Related Issues (12)

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.