SwipSwapMe/README.md

102 lines
4.1 KiB
Markdown
Raw Permalink Normal View History

2023-02-16 10:52:22 +01:00
# SwipSwapMe Plugin
2018-06-30 13:42:02 +02:00
2023-02-16 10:52:22 +01:00
This little plugin can be used to swap the TV and GamePad screen and offers different audio modes.
2018-06-30 13:42:02 +02:00
2023-02-16 10:52:22 +01:00
**When this plugin is enabled, the audio output of your Wii U is forced to stereo**
2018-06-30 13:42:02 +02:00
2023-02-16 10:52:22 +01:00
## Installation
(`[ENVIRONMENT]` is a placeholder for the actual environment name.)
1. Copy the file `swipswapme.wps` into `sd:/wiiu/environments/[ENVIRONMENT]/plugins`.
2. Requires the [WiiUPluginLoaderBackend](https://github.com/wiiu-env/WiiUPluginLoaderBackend) in `sd:/wiiu/environments/[ENVIRONMENT]/modules`.
3. Requires the [MemoryMappingModule](https://github.com/wiiu-env/MemoryMappingModule) in `sd:/wiiu/environments/[ENVIRONMENT]/modules`.
4. Requires the [NotificationModule](https://github.com/wiiu-env/NotificationModule) in `sd:/wiiu/environments/[ENVIRONMENT]/modules`.
## Usage
Press a button combo (default is the GamePad's TV button) on the GamePad, Pro Controller or Classic Controller to take swap the screens.
2018-06-30 13:42:02 +02:00
2023-02-16 10:52:22 +01:00
Via the plugin config menu (press L, DPAD Down and Minus on the GamePad, Pro Controller or Classic Controller) you can configure the plugin. The available options are the following:
2018-06-30 13:42:02 +02:00
2023-02-16 10:52:22 +01:00
- **Settings**:
- Plugin enabled: (Default is true)
- Enables or disables the SwipSwapMe plugin. **Forces the audio output to stereo when enabled.**
- Show notifications: (Default is true)
- Displays notifications when swapping the screens or changing the audio mode.
- Swap screens: (Default is false)
- Swaps the TV and GamePad screen when set to true.
2024-04-27 14:32:10 +02:00
- Screen mode: (Default is "Normal")
- Sets the screen mode. See "Screen modes" for more details.
2023-02-16 10:52:22 +01:00
- Audio mode: (Default is "Sound matches screen")
- Sets the audio mode. See "Audio modes" for more details.
- **Button combos**
- Enable swap screen button combo: (Default is true)
- Determines if the screen can be swapped with a button combo.
- Swap screen: (Default is the "TV" button)
- Button combo to swap the TV and GamePad screen.
2024-05-06 18:06:12 +02:00
- Enable swap change button combo: (Default is false)
- Determines if the screen can be changed with a button combo.
- Change screen: (Default is "right stick button"/R3)
- Button combo to change screen mode.
2023-02-16 10:52:22 +01:00
- Enable change audio mode button combo: (Default is false)
- Determines if the audio mode can be changed via a button combo.
- Change audio: (Default is "left stick button"/L3)
- Button combo to change the audio mode.
2018-06-30 13:42:02 +02:00
2023-02-16 10:52:22 +01:00
#### Audio Modes
SwipSwapme does not only allow you to swap the screen, it also offers multiple audio modes:
- **Normal**
- The audio output is not touched at all.
- **Swap TV and GamePad sound**
- Swaps the audio output of the TV and GamePad regardless of the screen swapping.
- **Sound matches screen**
- Swaps the audio output of the TV and GamePad if the screen are swapped as well.
- **Combine TV and GamePad sound**
- Outputs the TV and GamePad sound on both.
- **Left: TV; Right: GamePad**
- Outputs the TV sound on the left speaker, and the GamePad sound on the right speaker.
2018-06-30 13:42:02 +02:00
2024-04-27 14:32:10 +02:00
#### Screen Modes
SwipSwapme does not only allow you to swap the screen, it also offers multiple screen modes:
- **Normal**
- The screen output is not touched at all.
- **Swap TV and GamePad**
- Swaps the TV and GamePad screen.
- **Mirror TV**
- Mirrors the TV screen onto the GamePad.
- **Mirror GamePad**
- Mirrors the GamePad screen onto the TV.
2018-06-30 13:42:02 +02:00
## Building
2023-02-16 10:52:22 +01:00
For building you need:
- [wups](https://github.com/wiiu-env/WiiUPluginSystem)
- [wut](https://github.com/devkitPro/wut)
- [libnotifications](https://github.com/wiiu-env/libnotifications)
- [libmappedmemory](https://github.com/wiiu-env/libmappedmemory)
2018-06-30 13:42:02 +02:00
2023-02-16 10:52:22 +01:00
## Building using the Dockerfile
It's possible to use a docker image for building. This way you don't need anything installed on your host system.
```
# Build docker image (only needed once
docker build . -t swipswapme-builder
# make
docker run -it --rm -v ${PWD}:/project swipswapme-builder make
# make clean
docker run -it --rm -v ${PWD}:/project swipswapme-builder make clean
2023-02-16 10:52:22 +01:00
```
## Format the code via docker
2023-03-16 15:16:59 +01:00
`docker run --rm -v ${PWD}:/src ghcr.io/wiiu-env/clang-format:13.0.0-2 -r ./src -i`