Skip to content

Instantly share code, notes, and snippets.

@noidexe
Created July 31, 2017 00:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noidexe/05c1cac5636f815d770e2296bd3cb1f9 to your computer and use it in GitHub Desktop.
Save noidexe/05c1cac5636f815d770e2296bd3cb1f9 to your computer and use it in GitHub Desktop.
Nintendo Switch Joycons as html5 bluetooth controller
Nintendo Switch Joycons use standard bluetooth technology and can be paired with a PC or phone by holding the power button between SL and SR while the console is off.
If your Switch can't find em after that just reattach them to the console and they'll pair up immediately.
Button scheme info obtained using http://html5gamepad.com and http://gamepadviewer.com
Joycon R: Wireless Gamepad (Vendor: 057e Product: 2007)
Switch, Generic, XBOX
SL, B4, LB
SR, B5, RB
B, B2, X
A, B0, A
X, B1, Y
Y, B3, B
+, B9, Start
Home, B12, Dpad up
R analog press, B11, R analog press
R, B14, dpad left
ZR, B15 ,dpad right
Analog, Axis 9, ???
Joycon L: Wireless Gamepad (Vendor: 057e Product: 2006)
Switch, Generic, XBOX
Arrow buttons: Same mapping as ABXY in Joycon R
-, B8, Back
Capture, B13, Dpad down
L analog press, B10, L analog press
Analog, Axis 9, ???
SL, SR, ZL, R: same mapping as in Joycon R
Pro controller mappings coming soon.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment