Silence some warnings

This commit is contained in:
Georg Hagen
2024-07-09 13:43:48 +02:00
parent b4619be858
commit 268be2ca60
5 changed files with 12 additions and 8 deletions

View File

@@ -113,6 +113,7 @@ namespace OpenVulkano
case UIUserInterfaceIdiomTV: return DeviceType::TV;
case UIUserInterfaceIdiomMac: return DeviceType::PC;
case UIUserInterfaceIdiomVision: return DeviceType::VR;
default: break;
}
return DeviceType::Unknown;
}
@@ -176,6 +177,7 @@ namespace OpenVulkano
case UIDeviceBatteryStateUnplugged: return BatteryState::Unplugged;
case UIDeviceBatteryStateCharging: return BatteryState::Charging;
case UIDeviceBatteryStateFull: return BatteryState::ChargingFull;
default: break;
}
return BatteryState::Unavailable;
}
@@ -200,6 +202,7 @@ namespace OpenVulkano
case UIDeviceOrientationLandscapeRight: return DeviceOrientation::LandscapeRight;
case UIDeviceOrientationFaceUp: return DeviceOrientation::FaceUp;
case UIDeviceOrientationFaceDown: return DeviceOrientation::FaceDown;
default: break;
}
return DeviceOrientation::Unknown;
}
@@ -231,6 +234,7 @@ namespace OpenVulkano
case UIInterfaceOrientationPortraitUpsideDown: return InterfaceOrientation::PortraitUpsideDown;
case UIInterfaceOrientationLandscapeLeft: return InterfaceOrientation::LandscapeLeft;
case UIInterfaceOrientationLandscapeRight: return InterfaceOrientation::LandscapeRight;
default: break;
}
}
else
@@ -241,6 +245,7 @@ namespace OpenVulkano
case DeviceOrientation::PortraitUpsideDown: return InterfaceOrientation::PortraitUpsideDown;
case DeviceOrientation::LandscapeLeft: return InterfaceOrientation::LandscapeRight;
case DeviceOrientation::LandscapeRight: return InterfaceOrientation::LandscapeLeft;
default: break;
}
}
return InterfaceOrientation::Landscape;