hisptoot / nscon

Nintendo Switch Controller simulator written in go

Home Page:https://mzyy94.com/blog/2020/03/20/nintendo-switch-pro-controller-usb-gadget/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nscon

Nintendo Switch Controller simulator with usb gadget

Features

Checked ones are currently supported.

  • ABXY Buttons Input
  • L/R/ZL/ZR Triggers Input
  • D-Pad Input
  • Meta Buttons Input
  • Left/Right Stick Input
  • Reconnection
  • 6-Axis Accelerometer/Gyroscope
  • Rumble Feedback
  • LED Indicator
  • Disconnection
  • Remote Wakeup

Usage

Create Nintendo Switch Pro Controller USB Gadget first.

e.g. https://gist.github.com/mzyy94/60ae253a45e2759451789a117c59acf9#file-add_procon_gadget-sh

Simulate tty input as button input

sudo go run demo/main.go

License

GPL 3.0 see LICENSE

About

Nintendo Switch Controller simulator written in go

https://mzyy94.com/blog/2020/03/20/nintendo-switch-pro-controller-usb-gadget/

License:GNU General Public License v3.0


Languages

Language:Go 100.0%