diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index bc9ba597c..cdfbec94e 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: | diff --git a/port/src/input.c b/port/src/input.c index 24f693dbf..90fd58084 100644 --- a/port/src/input.c +++ b/port/src/input.c @@ -334,6 +334,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)