Add button combos

This commit is contained in:
Marc Riera Irigoyen 2023-04-30 21:38:03 +02:00
parent 1c7eb05cab
commit 8bd5b463c1
12 changed files with 194 additions and 84 deletions

View file

@ -20,16 +20,16 @@ This mod allows you to use your Densha de GO! Plug & Play as a USB controller fo
Connect the Plug & Play to a PC or console using the data cable. Press one of the following button combinations to select the controller you want to emulate:
| Controller | Button combination | Notes |
|-----------------------------------------|-----------------------|----------------------------------------------|
| One handle controller (Nintendo Switch) | UP | |
| Two handle controller (PC) | RIGHT | D-Pad is mapped to SELECT+ABCD |
| Two handle controller "Type 2" (PS2) | D | |
| Shinkansen controller (PS2) | B | Power notches are mapped to P2-P4-P7-P10-P13 |
| Multi Train Controller (PS2) - P4/B7 | C + Power handle at 0 | |
| Multi Train Controller (PS2) - P4/B2-B6 | C + Power handle at 1 | Beta, currently undetected by game |
| Multi Train Controller (PS2) - P5/B5 | C + Power handle at 2 | |
| Multi Train Controller (PS2) - P5/B7 | C + Power handle at 3 | Beta, currently undetected by game |
| Controller | Button combination | Notes |
|-----------------------------------------|-----------------------|--------------------------------------------------|
| One handle controller (Nintendo Switch) | UP | SELECT+START=HOME, SELECT+LEFT=L, SELECT+RIGHT=R |
| Two handle controller (PC) | RIGHT | D-Pad is mapped to SELECT+ABCD |
| Two handle controller "Type 2" (PS2) | D | |
| Shinkansen controller (PS2) | B | Power notches are mapped to P2-P4-P7-P10-P13 |
| Multi Train Controller (PS2) - P4/B7 | C + Power handle at 0 | |
| Multi Train Controller (PS2) - P4/B2-B6 | C + Power handle at 1 | |
| Multi Train Controller (PS2) - P5/B5 | C + Power handle at 2 | |
| Multi Train Controller (PS2) - P5/B7 | C + Power handle at 3 | Beta, currently undetected by game |
Hold the buttons until the controller vibrates to confirm selection. If no button is pressed, you can play with the Plug & Play as usual.
@ -43,3 +43,11 @@ When no controller is selected, RNDIS access is enabled in the device. You can a
- During the first installation, the device's kernel is backed up to a folder named *BACKUP* in the root of the USB drive. Copy its contents to a safe location.
- If detected, the [original mod by GMMan](https://github.com/GMMan/dengo-plug-and-play-controller) will be uninstalled to avoid conflicts.
## Compilation
To compile the program yourself, you will need Rust and toolchain for Armv7-A. The easiest way is to install [cross](https://github.com/cross-rs/cross) and run:
```cross build --target arm-unknown-linux-musleabi --release```
The Linux kernel source can be found [here](https://github.com/MarcRiera/dengo-plug-and-play-kernel).