cboe icon indicating copy to clipboard operation
cboe copied to clipboard

Can't increase/decrease skills on linux (wayland)

Open bobbens opened this issue 1 year ago • 5 comments

Hello, thanks for the nostalgic project. I'm testing under wayland with arch linux, and I find I can't decrease/increase skills from the menus. In particular, if I click on the "+" or "-" buttons, which should increase or decrease the skill value, it just opens the info window about the skill. I've tried fiddling around and have not bee able to find any way around this.

bobbens avatar Feb 06 '25 09:02 bobbens

Hello, thanks for the nostalgic project.

😄

In particular, if I click on the "+" or "-" buttons, which should increase or decrease the skill value, it just opens the info window about the skill. I've tried fiddling around and have not bee able to find any way around this.

When you hold Alt and click the +/- buttons it's supposed to bring up the help window.

We have an ongoing bug where when keys like Alt get pressed, for some reason the game keeps thinking they are held down forever. This sounds like that bug. Did you press the Alt key at any point before this bug happened?

I think sometimes you can work around the glitch by pressing Alt again. Maybe that will help in the meantime while we try to fix it?

NQNStudios avatar Feb 06 '25 13:02 NQNStudios

I see. It seems like alt-tabing focus can trigger it easily... You can fix it by pressing alt again as you say. Thanks!

bobbens avatar Feb 06 '25 14:02 bobbens

Oh, that's interesting that it's an Alt-Tab causing this! I'm guessing that an Alt-Tab would pass a keydown event to SFML, but by switching to another window, the keyrelease event would not be passed to BoE. We might be able to fix this specific case by making a loss of focus to BoE windows clear the stored modifier keys.

NQNStudios avatar Feb 06 '25 14:02 NQNStudios

@CelticMinstrel On Linux and Windows can we just query SFML for the modifier keys' state directly, because they don't have the same permissions problems as MacOS?

NQNStudios avatar Feb 10 '25 17:02 NQNStudios

I'm not sure, sorry…

CelticMinstrel avatar Feb 10 '25 18:02 CelticMinstrel