Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Credit: This project heavily relies on https://github.com/mzyy94/nscon.
1. Connect a joystick (only the following ones are supported and tested) to a host PC.
1. Nintendo Pro controller
1. X-Box One controller
1. Xbox Series X|S controller
1. PS4 controller

1. On the host PC, install the software:
Expand Down
4 changes: 4 additions & 0 deletions nscontroller/cmd/nsbackend/nsbackend.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ func mainLoop(con *nscon.Controller) (err error) {
con.Input.Button.Minus = darg
case "p": // plus
con.Input.Button.Plus = darg
case "-": // Minus alternative
con.Input.Button.Minus = darg
case "+": // plus alternative
con.Input.Button.Plus = darg

case "l1": // L1
con.Input.Button.L = darg
Expand Down
3 changes: 2 additions & 1 deletion nscontroller/cmd/nsfrontend/nsfrontend.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ var (
)

func mustGetDispatcher(js *js.Js) nscontroller.JoystickDispatcher {
if strings.Contains(js.Name, "X-Box One") {
if strings.Contains(js.Name, "X-Box One") || strings.Contains(js.Name, "Xbox") {
// Xbox string is for the Xbox Series X|S Controller
return nscontroller.XBoxOneJoystickDispatcher
}
if strings.Contains(js.Name, "Nintendo Switch Pro Controller") {
Expand Down