Logan M Hood
Logan M Hood
I've got a workaround that makes the game playable by running it "fullscreen" in a simulated 640x480 display window. * (1) Use [Xephyr](https://freedesktop.org/wiki/Software/Xephyr/) to simulate a 640x480 display in a...
The game is very playable now on Proton 9.0-2. It launches in fullscreen and scales the game correctly without cropping the image incorrectly, mouse and keyboard interaction both fully functional....
@LysirisMalven if you have the .SAV file handy can you attach it? I can try to reproduce on my system too just to gather more data
> So when you click on the text box you can't edit it? It works fine on windows. Yeah it's very weird. I can backspace(!) but can't enter any characters....
OK, here i pressed 'a' in the leader name dialog. Note that `key` (as in, `switch (key)` on line 110 of TextBox.cs) is KeyboardKey.A but `Input.GetCharPressed()` yields a 0!
ok if I really bang on my keyboard, about 1-in-20 characters get through. :) So I suspect it's some kind of race condition between `GetCharPressed()` and whatever dispatches the `OnKeyPressed`...
OK, it's not quite as simple as that, i tried: ```diff - _text = _text.Insert(_editPosition, Convert.ToChar(charPressed).ToString()); + _text = _text.Insert(_editPosition, Convert.ToChar(key).ToString()); ``` my letters all get through, but as UPPERCASE...
Progress update / a bit of rubberducking. I've got a simple repro of the issue. This code is structurally equivalent to this loop in [BaseScreen.ControlEvents](https://github.com/axx0/Civ2-clone/blob/18269cb5ee9c35dfd1d3ec53be951ad358a98631/RaylibUI/BasicTypes/Controls/TextBox.cs#L108) and [Textbox.OnKeyPressed](https://github.com/axx0/Civ2-clone/blob/18269cb5ee9c35dfd1d3ec53be951ad358a98631/RaylibUI/BasicTypes/Controls/TextBox.cs#L108). ```cs using Raylib_CSharp.Interact;...
^ Would be very interesting if someone who _isn't_ having any problems with Civ2-clone could run that first code block on their machine and confirm it works normally!
since this is mostly a me-problem i'll take an earnest shot at re-plumbing this. I have a bit of time off work so now's a good time. I suspect the...