Skip to content
This repository has been archived by the owner on Sep 25, 2022. It is now read-only.

rossmacarthur/rephrase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rephrase

Rephrase translates Sony DualShock 4 controller commands into a Nintendo Joycon controller commands.

Why?

I have a DS4 controller and I want it to work with my Nintendo Switch console.

Architecture

This project contains three main Rust crates that implement this translation:

  • gamepad: Defines a generic gamepad interface for use in the below crates.
  • reader: Reads Sony DualShock 4 input over USB (and in the future Bluetooth).
  • spoofer: Turns a STM32F4 Discovery microcontroller into a Nintendo Joycon emulator using the micro USB port.

This project is still a work in progress!

  • Implement DualShock 4 input parsing (currently over USB on Linux only).
  • Emulate a skeleton USB HID device on the STM32F4 Discovery.
  • Emulate a wired Switch Pro Controller and correctly interface with the Switch console.
  • Implement DualShock 4 Bluetooth receiver on STM32F4.
  • Forward all reports to the Switch console.

License

Licensed under either of

at your option.

About

Translate PS4 DualShock 4 controller commands into Nintendo Joycon controller commands

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published