mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-10-22 08:07:46 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7c141c1fd2 | ||
|
|
42c4e7ca58 | ||
|
|
6a6ea4a79a | ||
|
|
5d0ca8451d | ||
|
|
4641f68eb8 | ||
|
|
dd33f57b9a | ||
|
|
f6b225ca9c | ||
|
|
4ac3f11ff8 | ||
|
|
62aaf27293 |
No files matched your search
@@ -146,7 +146,8 @@
|
|||||||
{
|
{
|
||||||
[_controllerStreamLock lock];
|
[_controllerStreamLock lock];
|
||||||
@synchronized(controller) {
|
@synchronized(controller) {
|
||||||
LiSendMultiControllerEvent(controller.playerIndex, controller.lastButtonFlags, controller.lastLeftTrigger, controller.lastRightTrigger, controller.lastLeftStickX, controller.lastLeftStickY, controller.lastRightStickX, controller.lastRightStickY);
|
// Player 1 is always present for OSC
|
||||||
|
LiSendMultiControllerEvent(controller.playerIndex, _controllerNumbers | 1, controller.lastButtonFlags, controller.lastLeftTrigger, controller.lastRightTrigger, controller.lastLeftStickX, controller.lastLeftStickY, controller.lastRightStickX, controller.lastRightStickY);
|
||||||
}
|
}
|
||||||
[_controllerStreamLock unlock];
|
[_controllerStreamLock unlock];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>APPL</string>
|
<string>APPL</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>1.1.4</string>
|
<string>1.2.0</string>
|
||||||
<key>CFBundleSignature</key>
|
<key>CFBundleSignature</key>
|
||||||
<string>????</string>
|
<string>????</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
|
|||||||
@@ -309,6 +309,7 @@ void ClDisplayTransientMessage(const char* message)
|
|||||||
|
|
||||||
LiInitializeVideoCallbacks(&_drCallbacks);
|
LiInitializeVideoCallbacks(&_drCallbacks);
|
||||||
_drCallbacks.submitDecodeUnit = DrSubmitDecodeUnit;
|
_drCallbacks.submitDecodeUnit = DrSubmitDecodeUnit;
|
||||||
|
_drCallbacks.capabilities = CAPABILITY_REFERENCE_FRAME_INVALIDATION;
|
||||||
|
|
||||||
LiInitializeAudioCallbacks(&_arCallbacks);
|
LiInitializeAudioCallbacks(&_arCallbacks);
|
||||||
_arCallbacks.init = ArInit;
|
_arCallbacks.init = ArInit;
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ static NSMutableSet* hostList;
|
|||||||
message:[NSString stringWithFormat:@"Enter the following PIN on the host machine: %@", PIN]
|
message:[NSString stringWithFormat:@"Enter the following PIN on the host machine: %@", PIN]
|
||||||
preferredStyle:UIAlertControllerStyleAlert];
|
preferredStyle:UIAlertControllerStyleAlert];
|
||||||
[_pairAlert addAction:[UIAlertAction actionWithTitle:@"Cancel" style:UIAlertActionStyleDestructive handler:^(UIAlertAction* action) {
|
[_pairAlert addAction:[UIAlertAction actionWithTitle:@"Cancel" style:UIAlertActionStyleDestructive handler:^(UIAlertAction* action) {
|
||||||
|
_pairAlert = nil;
|
||||||
[_discMan startDiscovery];
|
[_discMan startDiscovery];
|
||||||
[self hideLoadingFrame];
|
[self hideLoadingFrame];
|
||||||
}]];
|
}]];
|
||||||
@@ -56,24 +57,36 @@ static NSMutableSet* hostList;
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void)displayFailureDialog:(NSString *)message {
|
||||||
|
UIAlertController* failedDialog = [UIAlertController alertControllerWithTitle:@"Pairing Failed"
|
||||||
|
message:message
|
||||||
|
preferredStyle:UIAlertControllerStyleAlert];
|
||||||
|
[failedDialog addAction:[UIAlertAction actionWithTitle:@"Ok" style:UIAlertActionStyleDestructive handler:nil]];
|
||||||
|
[self presentViewController:failedDialog animated:YES completion:nil];
|
||||||
|
|
||||||
|
[_discMan startDiscovery];
|
||||||
|
[self hideLoadingFrame];
|
||||||
|
}
|
||||||
|
|
||||||
- (void)pairFailed:(NSString *)message {
|
- (void)pairFailed:(NSString *)message {
|
||||||
dispatch_async(dispatch_get_main_queue(), ^{
|
dispatch_async(dispatch_get_main_queue(), ^{
|
||||||
[_pairAlert dismissViewControllerAnimated:YES completion:^{
|
if (_pairAlert != nil) {
|
||||||
_pairAlert = [UIAlertController alertControllerWithTitle:@"Pairing Failed"
|
[_pairAlert dismissViewControllerAnimated:YES completion:^{
|
||||||
message:message
|
[self displayFailureDialog:message];
|
||||||
preferredStyle:UIAlertControllerStyleAlert];
|
}];
|
||||||
[_pairAlert addAction:[UIAlertAction actionWithTitle:@"Ok" style:UIAlertActionStyleDestructive handler:nil]];
|
_pairAlert = nil;
|
||||||
[self presentViewController:_pairAlert animated:YES completion:nil];
|
}
|
||||||
|
else {
|
||||||
[_discMan startDiscovery];
|
[self displayFailureDialog:message];
|
||||||
[self hideLoadingFrame];
|
}
|
||||||
}];
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)pairSuccessful {
|
- (void)pairSuccessful {
|
||||||
dispatch_async(dispatch_get_main_queue(), ^{
|
dispatch_async(dispatch_get_main_queue(), ^{
|
||||||
[_pairAlert dismissViewControllerAnimated:YES completion:nil];
|
[_pairAlert dismissViewControllerAnimated:YES completion:nil];
|
||||||
|
_pairAlert = nil;
|
||||||
|
|
||||||
[_discMan startDiscovery];
|
[_discMan startDiscovery];
|
||||||
[self alreadyPaired];
|
[self alreadyPaired];
|
||||||
});
|
});
|
||||||
@@ -259,8 +272,10 @@ static NSMutableSet* hostList;
|
|||||||
|
|
||||||
// If we are online, paired, and have a cached app list, skip straight
|
// If we are online, paired, and have a cached app list, skip straight
|
||||||
// to the app grid without a loading frame. This is the fast path that users
|
// to the app grid without a loading frame. This is the fast path that users
|
||||||
// should hit most.
|
// should hit most. Check for a valid view because we don't want to hit the fast
|
||||||
if (host.online && host.pairState == PairStatePaired && host.appList.count > 0) {
|
// path after coming back from streaming, since we need to fetch serverinfo too
|
||||||
|
// so that our active game data is correct.
|
||||||
|
if (host.online && host.pairState == PairStatePaired && host.appList.count > 0 && view != nil) {
|
||||||
[self alreadyPaired];
|
[self alreadyPaired];
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Submodule moonlight-common/moonlight-common-c updated: f1adbc1e6b...20821e7eb6.
@@ -7,6 +7,8 @@
|
|||||||
objects = {
|
objects = {
|
||||||
|
|
||||||
/* Begin PBXBuildFile section */
|
/* Begin PBXBuildFile section */
|
||||||
|
9857AEEA1EBE85A20084F99E /* RtpFecQueue.c in Sources */ = {isa = PBXBuildFile; fileRef = 9857AEE91EBE85A20084F99E /* RtpFecQueue.c */; };
|
||||||
|
9857AEF01EBE85E10084F99E /* rs.c in Sources */ = {isa = PBXBuildFile; fileRef = 9857AEEE1EBE85E10084F99E /* rs.c */; };
|
||||||
98AB2E401CAD425A0089BB98 /* AudioStream.c in Sources */ = {isa = PBXBuildFile; fileRef = 98AB2E1A1CAD423B0089BB98 /* AudioStream.c */; };
|
98AB2E401CAD425A0089BB98 /* AudioStream.c in Sources */ = {isa = PBXBuildFile; fileRef = 98AB2E1A1CAD423B0089BB98 /* AudioStream.c */; };
|
||||||
98AB2E411CAD425A0089BB98 /* ByteBuffer.c in Sources */ = {isa = PBXBuildFile; fileRef = 98AB2E1B1CAD423B0089BB98 /* ByteBuffer.c */; };
|
98AB2E411CAD425A0089BB98 /* ByteBuffer.c in Sources */ = {isa = PBXBuildFile; fileRef = 98AB2E1B1CAD423B0089BB98 /* ByteBuffer.c */; };
|
||||||
98AB2E421CAD425A0089BB98 /* Connection.c in Sources */ = {isa = PBXBuildFile; fileRef = 98AB2E1D1CAD423B0089BB98 /* Connection.c */; };
|
98AB2E421CAD425A0089BB98 /* Connection.c in Sources */ = {isa = PBXBuildFile; fileRef = 98AB2E1D1CAD423B0089BB98 /* Connection.c */; };
|
||||||
@@ -35,6 +37,10 @@
|
|||||||
/* End PBXBuildFile section */
|
/* End PBXBuildFile section */
|
||||||
|
|
||||||
/* Begin PBXFileReference section */
|
/* Begin PBXFileReference section */
|
||||||
|
9857AEE91EBE85A20084F99E /* RtpFecQueue.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = RtpFecQueue.c; sourceTree = "<group>"; };
|
||||||
|
9857AEEB1EBE85AB0084F99E /* RtpFecQueue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RtpFecQueue.h; sourceTree = "<group>"; };
|
||||||
|
9857AEEE1EBE85E10084F99E /* rs.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = rs.c; path = "moonlight-common-c/reedsolomon/rs.c"; sourceTree = "<group>"; };
|
||||||
|
9857AEEF1EBE85E10084F99E /* rs.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = rs.h; path = "moonlight-common-c/reedsolomon/rs.h"; sourceTree = "<group>"; };
|
||||||
98AB2DF01CAD422B0089BB98 /* callbacks.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = callbacks.c; sourceTree = "<group>"; };
|
98AB2DF01CAD422B0089BB98 /* callbacks.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = callbacks.c; sourceTree = "<group>"; };
|
||||||
98AB2DF11CAD422B0089BB98 /* ChangeLog */ = {isa = PBXFileReference; lastKnownFileType = text; path = ChangeLog; sourceTree = "<group>"; };
|
98AB2DF11CAD422B0089BB98 /* ChangeLog */ = {isa = PBXFileReference; lastKnownFileType = text; path = ChangeLog; sourceTree = "<group>"; };
|
||||||
98AB2DF21CAD422B0089BB98 /* CMakeLists.txt */ = {isa = PBXFileReference; lastKnownFileType = text; path = CMakeLists.txt; sourceTree = "<group>"; };
|
98AB2DF21CAD422B0089BB98 /* CMakeLists.txt */ = {isa = PBXFileReference; lastKnownFileType = text; path = CMakeLists.txt; sourceTree = "<group>"; };
|
||||||
@@ -113,6 +119,15 @@
|
|||||||
/* End PBXFrameworksBuildPhase section */
|
/* End PBXFrameworksBuildPhase section */
|
||||||
|
|
||||||
/* Begin PBXGroup section */
|
/* Begin PBXGroup section */
|
||||||
|
9857AEED1EBE85D50084F99E /* reedsolomon */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
9857AEEE1EBE85E10084F99E /* rs.c */,
|
||||||
|
9857AEEF1EBE85E10084F99E /* rs.h */,
|
||||||
|
);
|
||||||
|
name = reedsolomon;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
98AB2DEF1CAD422B0089BB98 /* enet */ = {
|
98AB2DEF1CAD422B0089BB98 /* enet */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
@@ -193,6 +208,8 @@
|
|||||||
98AB2E191CAD423B0089BB98 /* src */ = {
|
98AB2E191CAD423B0089BB98 /* src */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
|
9857AEEB1EBE85AB0084F99E /* RtpFecQueue.h */,
|
||||||
|
9857AEE91EBE85A20084F99E /* RtpFecQueue.c */,
|
||||||
98AB2E1A1CAD423B0089BB98 /* AudioStream.c */,
|
98AB2E1A1CAD423B0089BB98 /* AudioStream.c */,
|
||||||
98AB2E1B1CAD423B0089BB98 /* ByteBuffer.c */,
|
98AB2E1B1CAD423B0089BB98 /* ByteBuffer.c */,
|
||||||
98AB2E1C1CAD423B0089BB98 /* ByteBuffer.h */,
|
98AB2E1C1CAD423B0089BB98 /* ByteBuffer.h */,
|
||||||
@@ -228,6 +245,7 @@
|
|||||||
FB290E2519B37A4E004C83CF = {
|
FB290E2519B37A4E004C83CF = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
|
9857AEED1EBE85D50084F99E /* reedsolomon */,
|
||||||
98AB2E191CAD423B0089BB98 /* src */,
|
98AB2E191CAD423B0089BB98 /* src */,
|
||||||
98AB2DEF1CAD422B0089BB98 /* enet */,
|
98AB2DEF1CAD422B0089BB98 /* enet */,
|
||||||
FB290E2F19B37A4E004C83CF /* Products */,
|
FB290E2F19B37A4E004C83CF /* Products */,
|
||||||
@@ -307,6 +325,7 @@
|
|||||||
98AB2E4C1CAD425A0089BB98 /* RtspParser.c in Sources */,
|
98AB2E4C1CAD425A0089BB98 /* RtspParser.c in Sources */,
|
||||||
98AB2E4D1CAD425A0089BB98 /* SdpGenerator.c in Sources */,
|
98AB2E4D1CAD425A0089BB98 /* SdpGenerator.c in Sources */,
|
||||||
98AB2E4E1CAD425A0089BB98 /* VideoDepacketizer.c in Sources */,
|
98AB2E4E1CAD425A0089BB98 /* VideoDepacketizer.c in Sources */,
|
||||||
|
9857AEEA1EBE85A20084F99E /* RtpFecQueue.c in Sources */,
|
||||||
98AB2E4F1CAD425A0089BB98 /* VideoStream.c in Sources */,
|
98AB2E4F1CAD425A0089BB98 /* VideoStream.c in Sources */,
|
||||||
98AB2E501CAD427A0089BB98 /* callbacks.c in Sources */,
|
98AB2E501CAD427A0089BB98 /* callbacks.c in Sources */,
|
||||||
98AB2E511CAD427A0089BB98 /* compress.c in Sources */,
|
98AB2E511CAD427A0089BB98 /* compress.c in Sources */,
|
||||||
@@ -315,6 +334,7 @@
|
|||||||
98AB2E541CAD427A0089BB98 /* packet.c in Sources */,
|
98AB2E541CAD427A0089BB98 /* packet.c in Sources */,
|
||||||
98AB2E551CAD427A0089BB98 /* peer.c in Sources */,
|
98AB2E551CAD427A0089BB98 /* peer.c in Sources */,
|
||||||
98AB2E561CAD427A0089BB98 /* protocol.c in Sources */,
|
98AB2E561CAD427A0089BB98 /* protocol.c in Sources */,
|
||||||
|
9857AEF01EBE85E10084F99E /* rs.c in Sources */,
|
||||||
98AB2E571CAD427A0089BB98 /* unix.c in Sources */,
|
98AB2E571CAD427A0089BB98 /* unix.c in Sources */,
|
||||||
98AB2E581CAD427A0089BB98 /* win32.c in Sources */,
|
98AB2E581CAD427A0089BB98 /* win32.c in Sources */,
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in new issue
Block a user