Giter Club home page Giter Club logo

dualsense-ts's People

Contributors

camtosh avatar captainthrillsdev avatar daniloarcidiacono avatar dependabot[bot] avatar github-actions[bot] avatar nsfm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dualsense-ts's Issues

Axis values mapped to wrong range

Describe the bug
Values for analog axis are mapped from -128 to 128, rather than -1 to 1.

To Reproduce
Check the state of the input while using the analog stick.

Expected behavior
X and Y axis should be limited from -1 to 1 as documented.

Rumble support

** Is your feature request related to a problem? Please describe. **
The controller has a feature that doesn't work with this library

** Describe the solution you'd like **
Support for all available features

Bad inputs in bluetooth mode

Describe the bug
Bluetooth almost works but inputs are incorrect

To Reproduce
yarn debug

Expected behavior
Identical to USB

Additional context
Bluetooth input buffer has 14 extra bytes

Missing inputs from bumpers/triggers

Describe the bug
No feedback from bumpers or triggers

To Reproduce
Attempt to listen for inputs from the bumpers or triggers

Expected behavior
My callbacks should run when the bumpers/triggers are used

Bumpers not working

Describe the bug
No callbacks for L1 and R1

To Reproduce
Just use them

Expected behavior
Callbacks

Additional context
L1 and R1 are available in the hid report but are not mapped.

"HID write failed: {}" error shows up after connecting gamepad in browser

Describe the bug
After granting permission to connect a DualSense gamepad using controller.hid.provider.getRequest() the following error shows up:
image

To Reproduce
Package version: 5.1.8
steps:

  1. Connect gamepad with Bluetooth.
  2. Grant permission using controller.hid.provider.getRequest().

Expected behavior
Successful connection with no errors.

Additional context

  • Using in a React (18.2.0) TypeScript (5.0.2) app built with Vite (4.4.5).
  • Used ReactContext like in the documentation and zustand (4.4.4) to check if it's a problem in my end.

Calling "removeAllListeners()" breaks most inputs

Describe the bug
Using "removeAllListeners()" to clear an event handler as suggested by the readme breaks inputs that relay changes from other inputs.

To Reproduce
Attempt to reuse inputs after following the steps suggested by the readme.

Expected behavior
My event handler is cleared without breaking my inputs.

Primary buttons and dpad conflict

Describe the bug
Pressing any of the primary buttons breaks dpad inputs.

To Reproduce
Hold down on the dpad and press X. The dpad state will change to 'false' until you release X.

Expected behavior
No conflicts.

Touchpad & Multitouch Support

Is your feature request related to a problem? Please describe.
The controller has a feature that doesn't work with this library

Describe the solution you'd like
Support for all available features

Multiplayer support

Is your feature request related to a problem? Please describe.
Would like to be able to use multiple controllers.

Describe the solution you'd like
A utility to list available controllers, and a way to specify which controller to link to which Dualsense instance.

Node HID check for browser error

Describe the bug
node_hid_provider is checking for window type undefined, typeof window === 'undefined' though

To Reproduce
Please provide exact package version and steps to reproduce the behavior:

  1. Try and run with node-hid

Expected behavior
Update check to correctly use 'undefined'

Gyro & Accelerometer support

Is your feature request related to a problem? Please describe.
The controller has a feature that doesn't work with this library

Describe the solution you'd like
Support for all available features

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.