From 9a462d3ca8dd038a8269b5ac07ae080dac170e9e Mon Sep 17 00:00:00 2001 From: fgsfds Date: Sat, 25 Jan 2025 11:55:50 +0100 Subject: [PATCH 1/2] port: log controller GUID to aid in binding generation --- port/src/input.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/port/src/input.c b/port/src/input.c index 8500f4716..ede18d9e3 100644 --- a/port/src/input.c +++ b/port/src/input.c @@ -333,6 +333,14 @@ static inline void inputInitController(const s32 cidx, const s32 jidx) sysLogPrintf(LOG_NOTE, "input: assigned controller '%d: (%s)' (id %d) to player %d", jidx, SDL_GameControllerName(pads[cidx]), inputControllerGetId(pads[cidx]), cidx); + + SDL_Joystick* joy = SDL_GameControllerGetJoystick(pads[cidx]); + if (joy) { + char guidStr[1024] = ""; + SDL_JoystickGUID guid = SDL_JoystickGetGUID(joy); + SDL_JoystickGetGUIDString(guid, guidStr, sizeof(guidStr)); + sysLogPrintf(LOG_NOTE, "input: GUID for controller %d: %s", jidx, guidStr); + } } static inline void inputCloseController(const s32 cidx) From f1084b6d9312bff61f06a5ef513ab8b015aa127d Mon Sep 17 00:00:00 2001 From: fgsfds Date: Sat, 25 Jan 2025 12:00:48 +0100 Subject: [PATCH 2/2] ci: use ubuntu-22.04 for i686-linux because ubuntu-24.04 is wack --- .github/workflows/c-cpp.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 0b7e6de0b..ddee809e7 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -50,7 +50,7 @@ jobs: retention-days: 0 build-i686-linux: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Install dependencies run: |