Xapfish: Workaround to get Splatoon mouse inputs working under Wayland

Channel:
Subscribers:
535
Published on ● Video Link: https://www.youtube.com/watch?v=O0YrkFQHr9M



Splatoon
Game:
Splatoon (2015)
Duration: 0:00
61 views
2


If you are using Linux and run Xapfish under Wayland sessions to play Splatoon 1, you end up realizing that while keyboard inputs work fine, mouse movements aren't bind exclusively to the game, making Splatoon's gyro not functioning in turn.

In this video I demonstrate a quick and dirty script made using a local LLM that launches Xapfish in XWayland mode with extra options added to launch Splatoon directly in fullscreen mode, allowing to play the game just fine again using keyboard and mouse.

This is a follow up to a former video I made on Xapfish, a Cemu fork with WiiU gamepad input mapped to keyboard and mouse, aimed towards especially Splatoon 1 players:
   • Xapfish: Splatoon w/ keyboard and mou...  

You can copy the script either from pastebin or copy it from below.
Don't forget to set executable rights when trying to run it.

https://pastebin.com/nbrDWWLb


=== THE FOLLOWING IS THE SCRIPT'S CONTENTS ===
#!/bin/bash

XAP_DIR="/path/to/xapfish/"
EXECUTABLE="Xapfish"
SPLATOON="/path/to/Splatoon/code/Gambit.rpx"

if [ -n "$WAYLAND_DISPLAY" ]; then
Running under Wayland, use the GDK and SDL environment variables
export GDK_BACKEND=x11
export SDL_VIDEO_DRIVER=x11
cd $XAP_DIR || exit 1
./Xapfish -g "$SPLATOON" -f
else
Running under Xorg, just execute the game executable directly
cd "$XAP_DIR" || exit 1
"./$EXECUTABLE" -g "$SPLATOON" -f
fi







Other Statistics

Splatoon Statistics For MegaManNeo

At this time, MegaManNeo has 5,677 views for Splatoon spread across 41 videos. His channel published over 2 days worth of content for the game, roughly 12.83% of Splatoon content that MegaManNeo has uploaded to YouTube.