Skip to content

Update: Add Gyro from Danos0100 PR to noWaterMark#84

Closed
seastwood wants to merge 1 commit intoThe-Fried-Fish:noWaterMarkfrom
seastwood:noWaterMark
Closed

Update: Add Gyro from Danos0100 PR to noWaterMark#84
seastwood wants to merge 1 commit intoThe-Fried-Fish:noWaterMarkfrom
seastwood:noWaterMark

Conversation

@seastwood
Copy link
Copy Markdown

@seastwood seastwood commented Jun 28, 2025

This is from Danos0100's pull request moonlight-stream#664 for the original moonlight-ios repo. I merged it into the noWaterMark branch of this repo. This feature allows a user to select gyroscope options [Auto],[Device Motion],[Controller Motion]. A use case for this is it lets the user choose to use their iPad or iPhone for gyro input while a controller like the Galileo G8 is attached.

Copy link
Copy Markdown
Author

@seastwood seastwood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Files with edits that need to be ignored ar .DS_Store and Moonlight.xcodeproj. The changes in these files do not need to be merged.

@seastwood
Copy link
Copy Markdown
Author

seastwood commented Jun 28, 2025

!! An important thing to be aware of when testing this! Within Sunshine/Apollo you must go to Configuration > Input > Emulated Gamepad Type > set to DS4 (PS4). Otherwise, the touchpad controls or gamepad controls will likely be sent as Xbox360 input which completely ignores gyroscope input.

@TrueZhuangJia
Copy link
Copy Markdown
Collaborator

TrueZhuangJia commented Jun 29, 2025

!! An important thing to be aware of when testing this! Within Sunshine/Apollo you must go to Configuration > Input > Emulated Gamepad Type > set to DS4 (PS4). Otherwise, the touchpad controls or gamepad controls will likely be sent as Xbox360 input which completely ignores gyroscope input.

ok thanks for the info. after setting emulated controller to DS4, functionalities of controller button & stick other than gyro remains the same right?

@seastwood
Copy link
Copy Markdown
Author

!! An important thing to be aware of when testing this! Within Sunshine/Apollo you must go to Configuration > Input > Emulated Gamepad Type > set to DS4 (PS4). Otherwise, the touchpad controls or gamepad controls will likely be sent as Xbox360 input which completely ignores gyroscope input.

ok thanks for the info. after setting emulated controller to DS4, functionalities of controller button & stick other than gyro remains the same right?

Correct. I've tested this extensively and it functions very well.

@seastwood
Copy link
Copy Markdown
Author

seastwood commented Jun 29, 2025

!! An important thing to be aware of when testing this! Within Sunshine/Apollo you must go to Configuration > Input > Emulated Gamepad Type > set to DS4 (PS4). Otherwise, the touchpad controls or gamepad controls will likely be sent as Xbox360 input which completely ignores gyroscope input.

ok thanks for the info. after setting emulated controller to DS4, functionalities of controller button & stick other than gyro remains the same right?

Correct. I've tested this extensively and it functions very well.

The only thing that will change will be how apps/games see the controller if they are capable of differentiating it. Steam will see it as a DS4 controller, which is a good thing and it works just fine.

@seastwood
Copy link
Copy Markdown
Author

seastwood commented Jun 29, 2025

If you're not familiar with gyro there are additional settings to take into account. Steam default settings use YAW for gyro, which I change to ROLL and I set X to be inverted. While other apps do a good job at recognizing the gyro input correctly automatically.

@TrueZhuangJia
Copy link
Copy Markdown
Collaborator

If you're not familiar with gyro there are additional settings to take into account. Steam default settings use YAW for gyro, which I change to ROLL and I set X to be inverted. While other apps do a good job at recognizing the gyro input correctly automatically.

is there any quick test method for ds4 gyro? (without installing steam or any games) i searched over internet, they test button and sticks only

@TrueZhuangJia
Copy link
Copy Markdown
Collaborator

If you're not familiar with gyro there are additional settings to take into account. Steam default settings use YAW for gyro, which I change to ROLL and I set X to be inverted. While other apps do a good job at recognizing the gyro input correctly automatically.

If you're not familiar with gyro there are additional settings to take into account. Steam default settings use YAW for gyro, which I change to ROLL and I set X to be inverted. While other apps do a good job at recognizing the gyro input correctly automatically.

is there any quick test method for ds4 gyro? (without installing steam or any games) i searched over internet, they test button and sticks only

ok i've got it working on steam

@seastwood
Copy link
Copy Markdown
Author

If you're not familiar with gyro there are additional settings to take into account. Steam default settings use YAW for gyro, which I change to ROLL and I set X to be inverted. While other apps do a good job at recognizing the gyro input correctly automatically.

If you're not familiar with gyro there are additional settings to take into account. Steam default settings use YAW for gyro, which I change to ROLL and I set X to be inverted. While other apps do a good job at recognizing the gyro input correctly automatically.

is there any quick test method for ds4 gyro? (without installing steam or any games) i searched over internet, they test button and sticks only

ok i've got it working on steam

Yeah that's the only way I know how to test it. I did just connect my switch pro controller to my phone to test out the "Controller Motion" option and I can confirm that it works.

@TrueZhuangJia
Copy link
Copy Markdown
Collaborator

already merged in voidlink

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants