Skip to content
This repository was archived by the owner on Aug 5, 2025. It is now read-only.
This repository was archived by the owner on Aug 5, 2025. It is now read-only.

Not working for DS4 #30

@Mattijah

Description

@Mattijah

Using node-hid I can see the controller connected and events coming in. I can as well send commands out, but when running node-gamepad the listener is not getting triggered

const controller = new GamePad("ps4/dualshock4", {vendorID:1356, productID:2508});

console.log(HID.devices()) // Shows my controller

controller.connect();

controller.on( 'up:press', () => {
    console.log( 'up' );
});

controller.on( 'down:press', () => {
    console.log( 'down' );
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions