Skip to content

mzyy94/nscon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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