Variable renaming for consistency

This commit is contained in:
Sam Lantinga 2022-09-02 11:49:06 -07:00
parent 5002624e8a
commit 253f6a913d
1 changed files with 3 additions and 3 deletions

View File

@ -1053,10 +1053,10 @@ static void HandleResponse(SDL_DriverWii_Context *ctx, SDL_Joystick *joystick)
case k_eWiiCommunicationState_ExtensionIdentify3: case k_eWiiCommunicationState_ExtensionIdentify3:
if (type == k_eWiiInputReportIDs_ReadMemory) { if (type == k_eWiiInputReportIDs_ReadMemory) {
EWiiExtensionControllerType exctype = k_eWiiExtensionControllerType_Unknown; EWiiExtensionControllerType eExtensionControllerType = k_eWiiExtensionControllerType_Unknown;
if (ParseExtensionResponse(ctx, &exctype)) { if (ParseExtensionResponse(ctx, &eExtensionControllerType)) {
ctx->m_eCommState = k_eWiiCommunicationState_None; ctx->m_eCommState = k_eWiiCommunicationState_None;
if (exctype != ctx->m_eExtensionControllerType) { if (eExtensionControllerType != ctx->m_eExtensionControllerType) {
/* Mark this controller as disconnected so we re-connect with a new identity */ /* Mark this controller as disconnected so we re-connect with a new identity */
ctx->m_bDisconnected = SDL_TRUE; ctx->m_bDisconnected = SDL_TRUE;
} }