Silence some warnings
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user