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

add Gamepads demo #88

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

add Gamepads demo #88

wants to merge 10 commits into from

Conversation

halfmexican
Copy link
Contributor

This is the same demo from this pr with no manifest changes. It might need a little cleanup, haven't touched it in awhile.

@halfmexican halfmexican linked an issue Feb 12, 2024 that may be closed by this pull request
Copy link
Contributor

@sonnyp sonnyp left a comment

Choose a reason for hiding this comment

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

Thanks for reopening

I made workbenchdev/Workbench#915 to explain to users how to add the --device=all or --device=input permission which we need before landing this.

demos/Gamepads/main.blp Outdated Show resolved Hide resolved
demos/Gamepads/main.json Outdated Show resolved Hide resolved
demos/Gamepads/main.json Outdated Show resolved Hide resolved
"category": "controls",
"description": "Respond to gamepads and controllers input",
"panels": ["code", "preview"],
"autorun": true
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"autorun": true
"autorun": true,
"flatpak-finish-args": ["--device=input"]

See workbenchdev/Workbench#985

Comment on lines +8 to +9
title: _("Please connect a gamepad");
description: _("A controller is needed for this demo");
Copy link
Contributor

Choose a reason for hiding this comment

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

please use normal title/description from main.json and move the status/troubleshooting inside the status page

Adw.StatusPage status_page {
title: _("Please connect a gamepad");
description: _("A controller is needed for this demo");
icon-name: "gamepad-symbolic";
Copy link
Contributor

Choose a reason for hiding this comment

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

The icon is missing - please check the Library entry "Using Icons" on how to include one in the demo

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.

libmanette example
2 participants