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 shortcuts to switch between two modes #17

Open
mvicomoya opened this issue Jul 12, 2024 · 1 comment
Open

Add shortcuts to switch between two modes #17

mvicomoya opened this issue Jul 12, 2024 · 1 comment

Comments

@mvicomoya
Copy link

First of all, I just want to thank you @wheaney for the great work you are doing around supporting XR glasses on Linux with Breezy Desktop and this Steam Deck plugin.

So the feature I'm actually after is to have some shortcut to be able to move the virtual screen to a corner quickly and disable the electromagnetic film on my Viture XR Pro glasses.

With the current implementation of the plugin it may not be too complicated to allow users to define "main" and "secondary" modes that you can swap quickly. I could for instance have follow mode with the screen on a corner as secondary mode and accomplish the PIP mechanism that I'm after.

I think the challenging part would be to hook this logic up to a press of a button on the glasses, or a combination of buttons on the Deck. As far as I can tell, there's currently no way for Decky plugins to get input events while running in the background, but I might be wrong. Also, not sure if the current Viture Linux SDK allows for getting button events either.

Anyway, I just wanted to throw this idea here to see if you @wheaney have any insight.

Not having much time for personal projects lately, but I wouldn't mind trying to put together a PR myself for this if it's technically possible. I don't think it's desirable to build upon the multi-tap mechanism that you came up with, but maybe that's the only option.

@wheaney
Copy link
Owner

wheaney commented Jul 12, 2024

Most of my plugin's functionality comes from the driver that runs as a systemd service, so it could definitely watch for key/button events.

The VITURE SDK doesn't give me access turn turn on/off the tint, but I think it's possible. I'll have to ask them if they can add it.

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

No branches or pull requests

2 participants