Skip to content

Instantly share code, notes, and snippets.

View vlumi's full-sized avatar

Ville Misaki vlumi

View GitHub Profile
@vlumi
vlumi / denshadego_zuiki_ps.gpc
Last active September 1, 2024 03:01 — forked from wesalvaro/denshadego_zuiki_ps.gpc
Use the Zuiki Densha-de-GO! controller for the Nintendo Switch on the PlayStation. Out of the box, it functions but the mascon values do not map correctly. This script translates the Nintendo Switch accepted values into values accepted by the PlayStation.
#pragma METAINFO("Zuiki Densha-de-GO! for PS4", 2, 0, "Ville Misaki")
// Original by Wes Alvaro
// Converts NS Zuiki Densha-de-GO! controller mascon values for PS4.
// Mascon values need conversion or else mascon positions are skipped.
// No changes are needed for other controls (including EB).
// Controls should be set to 「スタンダード」"Standard" + 「ダイレクト」"Direct".
#include <switch.gph>
// The mascon is controlled with the left analog stick's y-axis.