Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add Guide menu to on-screen virtual controller #1265

Merged
merged 5 commits into from
Jul 27, 2024

Conversation

mattvgm
Copy link
Contributor

@mattvgm mattvgm commented Oct 23, 2023

Description

In some games/applications the guide menu(or Xbox button) is actually important, for example when using Steam Big Picture this button opens the big picture's menu to tweak controller,exit game, etc...

This PR adds to the On-screen virtual controller the Guide Menu (The name can be changed) between the START and BACK buttons.

It also adds a configuration for the ones that want to hide it and don't need to use it.

Motivation

Personally this helps me 100% as my second generic gamepad does not have this button and I have other combos mapped to BACK + START.I would even add a configuration to only have this button, but I think maybe the PR #1247 already address it in a good way.

Tested with both #1247 and #1171 and works perfectly, no conflicts and made my experience better

Screenshot

guide_menu

In order to allow the `Guide Button` to be pressed without a physical gamepad, add the button to the On-screen virtual controller
With the addition of the `guide menu` to the on screen virtual controller. A configuration to allow hiding it is not present
@jk7gr
Copy link

jk7gr commented Apr 8, 2024

I am really looking forward to it as it will be a game changer for those using the app to connect to Batocera OS where the button acts like hotkey for several functionality.

@mattvgm
Copy link
Contributor Author

mattvgm commented Apr 11, 2024

@jk7gr I've been using for a while and it works fine for me.

@cgutman When you have time can you please give it a look on this PR. If it is something you consider good I can improve it further if necessary. Thanks

Copy link
Contributor

@ReenigneArcher ReenigneArcher left a comment

Choose a reason for hiding this comment

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

@mattvgm I am the maintainer of Sunshine and getting more involved in the Moonlight side. I'm trying to help out by completing some pre-reviews before they go to cgutman.

This seems good to me. I am going to test these changes later, but for now I have a few code style nit picks.

mattvgm and others added 3 commits July 25, 2024 13:40
…er/VirtualControllerConfigurationLoader.java

Co-authored-by: ReenigneArcher <[email protected]>
…er/VirtualControllerConfigurationLoader.java

Co-authored-by: ReenigneArcher <[email protected]>
…er/VirtualControllerConfigurationLoader.java

Co-authored-by: ReenigneArcher <[email protected]>
@mattvgm
Copy link
Contributor Author

mattvgm commented Jul 25, 2024

@ReenigneArcher Thank you for the feedback and thank you for the Sunshine project, is a fantastic project.

I agree with all the changes to keep the code consistence. I'll be around for anything, thanks

Copy link
Contributor

@ReenigneArcher ReenigneArcher left a comment

Choose a reason for hiding this comment

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

I tested the changes and everything works as expected.

I do have one question, since I am new to this codebase, which is regarding the translations. #1314 (comment)

@cgutman cgutman merged commit 85ed728 into moonlight-stream:master Jul 27, 2024
1 check passed
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.

4 participants