|
@@ -591,7 +591,7 @@ static Sint16 ApplyStickCalibration(SDL_DriverSwitch_Context *ctx, int nStick, i
|
|
|
static void SDLCALL SDL_GameControllerButtonReportingHintChanged(void *userdata, const char *name, const char *oldValue, const char *hint)
|
|
|
{
|
|
|
SDL_DriverSwitch_Context *ctx = (SDL_DriverSwitch_Context *)userdata;
|
|
|
- ctx->m_bUseButtonLabels = (hint && *hint != '0' && SDL_strcasecmp(hint, "false") != 0);
|
|
|
+ ctx->m_bUseButtonLabels = (!hint || !*hint || ((*hint != '0') && (SDL_strcasecmp(hint, "false") != 0)));
|
|
|
}
|
|
|
|
|
|
static Uint8 RemapButton(SDL_DriverSwitch_Context *ctx, Uint8 button)
|