Fix some Xcode 11 warnings

This commit is contained in:
Cameron Gutman
2019-09-11 19:07:53 -07:00
parent 597aaa1bab
commit f51dbe4295
4 changed files with 9 additions and 4 deletions
+5
View File
@@ -194,6 +194,9 @@
[_controllerStreamLock unlock];
}
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
-(void) unregisterControllerCallbacks:(GCController*) controller
{
if (controller != NULL) {
@@ -428,6 +431,8 @@
return controller.extendedGamepad != nil || controller.gamepad != nil;
}
#pragma clang diagnostic pop
+(int) getGamepadCount {
int count = 0;