Open trigg opened 3 years ago
I will have to give this a try sometime later. It has been a while since I have tested Wayland in any capacity.
Thank you :) This is the final thing I need to be completely on Wayland on my gaming setup.
I tried this in Fedora 33 running Gnome on Wayland. The overlay does not work for me.
Gnome is not a wlroots compositor.
https://way-cooler.org/book/wlroots_introduction.html
The only exceptions I've seen for wlroots are Gnome, Plasma and Weston. Everything else should be wlroots
I have tried it in Sway and the OSD still does not display for me. SC-Controller does not lock the input as it should either.
So any error messages? What's said about Wayland in the log?
Random swing in the dark but the usual first step is ensure you've installed gtk-layer-shell
It will only lock if it manages to enable an OSD, thankfully.
DNF shows that the package is already installed. SC-Controller does print a message that Wayland has been detected.
Wayland detected. Disabling X11 support, some functionality will be unavailable
When the Steam button is pressed and the daemon is running with debug output.
Cannot show OSD; there is no scc-osd-daemon registered
Damn it. Didn't realize that the code was in a different branch. Going to have to build the program again and try it there. Sorry.
Ah my apologies. I thought I had linked the branch too!
Okay. Now it mostly works. Some behavior issues currently are that submenus do not display (All Profiles) and the keyboard will not hide when B is pressed.
Having 'ESC' does not work but set it to 'hide keyboard' works
Also on intel gpu it renders the submenu in the same spot but seems to accept input just fine. Ideally we'd offset from the edge of screen
I ended up merging your current changes in with commit e026fc17e1c782ba903feeab28b421db130fd89d. Hopefully these changes will help out other people who primarily use Wayland. I will continue to stick with Xorg. A new build will probably be made public in a few days. Thank you for the changes.
Version 0.4.8.2 is now out and has these changes incorporated. I will keep this issue open for a while in case you want to work on this further.
https://github.com/Ryochan7/sc-controller/releases/tag/v0.4.8.2
Using sway 1.7 and sc-controller 0.4.8.9 The OSD menus (inclyding keyboard) aren't working
@trigg are you still using this and is it working for you or do you know how to hack this in a working state?
My apologies, I got diverted away and completely forgot to come back to this.
I switched back to steam input and gamescope, but I'm not adverse to looking back over this as I feel it's a better solution in a lot of ways. I'll try to make some time soon!
thanks :)
yeah, with steam my issue is, that there is no menu support for desktop configuration, which is my main goal as i'd like to use it as a keyboard
maybe i can help? i mainly come from js/node.js development, but if things are documented well enough, i should have a good chance
(some time ago i wanted to try to just do a touchpad keyboard, but evdev and the likes didn't give me enough documentation...)
ok, i dunno how, menus are working now (radial doesn't) virtual keyboard doesn't work
sadly for me, the menus don't work the way i hoped for and navigation is really bad
Using sway/wlroots this implementation partially works, but the menu is rendered behind fullscreen windows (so it can't be seen with games/fullscreen video players etc).
For me, OSD doesn't work with a current wlroots/sway setup.
While Wayland itself is missing a central overlay/osd system the compositors that are based on wlroots have layer shell which allows this feature.
I've cobbled together a proof-of-concept fork and if there's interest I can work more on it. Tested on sway and wayfire.
Fork here
Main issues: