Report attached gamepads during launch to fix L4D2

This commit is contained in:
Cameron Gutman
2018-01-20 14:37:33 -08:00
parent af3bc82d0f
commit 6bb6c40bec
8 changed files with 39 additions and 7 deletions
+1
View File
@@ -20,5 +20,6 @@
@property int bitRate;
@property int riKeyId;
@property NSData* riKey;
@property int gamepadMask;
@end
+1 -1
View File
@@ -9,5 +9,5 @@
#import "StreamConfiguration.h"
@implementation StreamConfiguration
@synthesize host, appID, width, height, frameRate, bitRate, riKeyId, riKey;
@synthesize host, appID, width, height, frameRate, bitRate, riKeyId, riKey, gamepadMask;
@end
+2 -1
View File
@@ -106,7 +106,8 @@
height:_config.height
refreshRate:_config.frameRate
rikey:[Utils bytesToHex:_config.riKey]
rikeyid:_config.riKeyId]]];
rikeyid:_config.riKeyId
gamepadMask:_config.gamepadMask]]];
NSString *gameSession = [launchResp getStringTag:@"gamesession"];
if (launchResp == NULL || ![launchResp isStatusOk]) {
[_callbacks launchFailed:@"Failed to launch app"];