mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-05-31 22:10:29 +00:00
Fixed build
This commit is contained in:
parent
0f940cb6ce
commit
099e53f3a5
|
@ -1225,11 +1225,11 @@ static void UpdateDeviceIdentity(SDL_HIDAPI_Device *device)
|
||||||
break;
|
break;
|
||||||
case k_eSwitchDeviceInfoControllerType_HVCLeft:
|
case k_eSwitchDeviceInfoControllerType_HVCLeft:
|
||||||
HIDAPI_SetDeviceName(device, "Nintendo HVC Controller (1)");
|
HIDAPI_SetDeviceName(device, "Nintendo HVC Controller (1)");
|
||||||
device->type = SDL_GAMEPAD_TYPE_UNKNOWN;
|
device->type = SDL_CONTROLLER_TYPE_UNKNOWN;
|
||||||
break;
|
break;
|
||||||
case k_eSwitchDeviceInfoControllerType_HVCRight:
|
case k_eSwitchDeviceInfoControllerType_HVCRight:
|
||||||
HIDAPI_SetDeviceName(device, "Nintendo HVC Controller (2)");
|
HIDAPI_SetDeviceName(device, "Nintendo HVC Controller (2)");
|
||||||
device->type = SDL_GAMEPAD_TYPE_UNKNOWN;
|
device->type = SDL_CONTROLLER_TYPE_UNKNOWN;
|
||||||
break;
|
break;
|
||||||
case k_eSwitchDeviceInfoControllerType_NESLeft:
|
case k_eSwitchDeviceInfoControllerType_NESLeft:
|
||||||
HIDAPI_SetDeviceName(device, "Nintendo NES Controller (L)");
|
HIDAPI_SetDeviceName(device, "Nintendo NES Controller (L)");
|
||||||
|
@ -1258,7 +1258,7 @@ static void UpdateDeviceIdentity(SDL_HIDAPI_Device *device)
|
||||||
/* We couldn't read the device info for this controller, might not be fully compliant */
|
/* We couldn't read the device info for this controller, might not be fully compliant */
|
||||||
return;
|
return;
|
||||||
default:
|
default:
|
||||||
device->type = SDL_GAMEPAD_TYPE_UNKNOWN;
|
device->type = SDL_CONTROLLER_TYPE_UNKNOWN;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
device->guid.data[15] = ctx->m_eControllerType;
|
device->guid.data[15] = ctx->m_eControllerType;
|
||||||
|
|
Loading…
Reference in a new issue