-
Notifications
You must be signed in to change notification settings - Fork 0
Nintendo JoyCon
Thomas Wehr edited this page May 9, 2022
·
5 revisions
The Nintendo JoyCon is a GamePad, connected via USB or Bluetooth.
| Property | description | operations |
|---|---|---|
| accelerometer | acceleration measured by 1 of the 3 accelerometers, on 3 axis | read |
| actual accelerometer | calculated accerleration based on all 3 accelerometers, on 3 axis | read |
| gyroscope | angular velocity (rps and dps) measured by 1 of the 3 gyroscopes, on 3 axis |
read |
| actual gyroscope | angular velocity (rps and dps) based on all 3 gyroscopes, on 3 axis |
read |
| actual orientation | device orientation in degrees (alpha, beta, gamma) |
read |
| quaternion | spatial orientation in quaternions | read |
| actual orientation quaternion | spatial orientations and rotations on in degress (alpha, beta, gamma) |
read |
| Event | description |
|---|---|
Button x pressed |
raised, when the referred button x is pressed |
To use this device under Linux, see Linux setup for additional required steps.
- Connect the JoyCon to your PC either via Bluetooth or USB.
- Turn on Bluetooth on your computer.
- Disconnect the Joy-Cons from the Switch.
- Hold the Sync button on the Joy-Cons, located between the SR and SL buttons, until the LED lights start flashing.
- Look for the Joy-Con in your computer’s Bluetooth menu, and select the option to pair it with your device.
- Connect the JoyCon to BLAST by clicking the
Things and Resourcescategory and thenconnect via WebHID. - Select
Joy-Con (L/R)and clickConnect. - (optional) Give the device a name.
- The device is now selectable on the
webHID deviceblock in theThings and Resourcescategory.
- Create
/etc/udev/rules.d/10-joycon.rules - paste the following rules into it
# 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" # Switch Pro controller (USB and Bluetooth) KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="057e", ATTRS{idProduct}=="2009", MODE="0666" KERNEL=="hidraw*", SUBSYSTEM=="hidraw", KERNELS=="0005:057E:2009.*", MODE="0666" # Switch Joy-con charging grip (USB only) KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="057e", ATTRS{idProduct}=="200e", MODE="0666"
- reload udev rules using
sudo udevadm control --reload-rules - Reconnect the device.
