Skip to content

A drum kit web app that uses Nintendo Joy-Cons as controllers

License

Notifications You must be signed in to change notification settings

j4ckofalltrades/joy-con-drum-kit

Repository files navigation

Joy-Con Drum Kit

A drum kit web app that uses Nintendo Joy-Cons as controllers (connected via WebHID).

Important

The WebHID API is currently only supported on Chromium-based browsers e.g. Chrome, Edge, etc.

Demo

Check out the live demo of the app here.

demo

You can also view a demo recording by clicking on the video below:

Joy-Con Drum Kit Demo

Pre-requisites

If you are running Linux, you need to perform the following steps.

  1. Create a new file /etc/udev/rules.d/10-joycon.rules and paste the following content:

    # Switch Joy-con (L) (Bluetooth only)
    KERNEL=="hidraw*", SUBSYSTEM=="hidraw", KERNELS=="0005:057E:2006.*", MODE="0666"
    
    # Switch Joy-con (R) (Bluetooth only)
    KERNEL=="hidraw*", SUBSYSTEM=="hidraw", KERNELS=="0005:057E:2007.*", MODE="0666"
  2. Reload udev rules using sudo udevadm control --reload-rules

Quickstart

Launch the app locally with pnpm install --frozen-lockfile and pnpm run start.

Attribution

About

A drum kit web app that uses Nintendo Joy-Cons as controllers

Resources

License

Stars

Watchers

Forks