#IDE doesn't like alt+gr on scandinavian 102 key keyboards

1 messages · Page 1 of 1 (latest)

tough crane
#

No matter what I do, even trying to do ctrl+alt, it treats alt+gr (right alt) as ctrl keypresses, making it very hard to produce the following characters: @£$€{[]}| this makes programming ingame extremely inconvenient as I constantly have to close and reopen IDE, even the game sometimes to avoid weird glitches including multiple cursors appearing. Steps to reproduce requires a keyboard the developers are apparently not in posession of. Solution suggestion: Distinguish right alt/alt+gr from control and alt, this key is crucial in non american 100+ key qwerty keyboards. Currently I literally have to copypaste code and keep a comment line of characters to copypaste to avoid this glitch.

It also decided that I must crouch when I then hit escape to reset the keyboard input state.

cerulean badge
astral pecan
#

We need to know if the behavior is the same in text chat @tough crane

flint mortar
#

Same with a French keyboard, the editor window needs a Ctrl + Alt, but induce unexpected behaviors.
On the chat window however Alt+gr is working fine @astral pecan

tough crane
#

alt+gr works fine in chat, but it still triggers crouching on send/exit of chat

astral pecan
#

@tough crane @flint mortar
potentially fixed in the latest update

tough crane
#

ill give it a spin when i got time

flint mortar
#

Just tested, i works fine. Thank you @astral pecan !

tough crane
#

Issue seems fixed @astral pecan

tough crane
#

Other issues involving it treating a single press of alt+gr as a held control key still persists, can the whatever logic for treating "weird key" as "held control" be something you can make toggleable in settings in case it somehow breaks your keyboards? Its getting really annoying

#

alternatively: Make option for eliminating all reading for ctrl+key combo shortcuts

#

I tried to write a function name that started with n, it immediately prompted for a new file when I pressed n

#

with no other key held, after having to press altgr+2 to make a @

#

yeah I still have to keysmash ctrl and other random keys to get it out of this every time I write it, it only briefly fixed

#

okay now its randomly altering text size while I am trying to make basic arithmetic operators

#

I have never had text entry in a video game be this buggy before

#

okay this seemed fixed at the surface but its literally become worse

#

the game already relies on proprietary libraries, why not just use dear_imgui text entry example?

astral pecan
#

It's something external to the game, an extension of ImGui

soft solar
#

@tough crane I'm sure you thought of it but I really would like to rule out a possible bad keyboard..
I cannot think of anything that could get the CTRL key "stuck", other than a keyboard issue..
have you tried with another keyboard? or with another text editor, recently? does it do it in the chat? does it do it in Notepad?

#

if the issue is intermittent, it would explain a stuck ctrl key on the keyboard, sometimes it's not stuck, so sometimes it's alright..

#

Also, the Crouch behavior also points to stuck ctrl key.
Crouch key is not handled by imgui at all, it's a completely different mechanism, and detects the holding of the actual key index on the keyboard

tough crane
#

and no, the ctrl key isnt stuck, it doesnt register as stuck in any other program

#

Though considering the fact that I write messages and code at length on a daily basis with no issue pointing towards stuck this or that key or a faulty driver in every other program/application on my system, I highly doubt that it is an end user issue right here, just that the code you use for handling text input doesnt take non-US keyboards very well into account. I have my basic respect for other developers out there and generally verify it isn't me or the hardware which is doing the wrong thing

soft solar
tough crane
cold gyro
#

I need to bump this thread. I use a german (105 key) cherry keyboard. Admittedly i guess its a cheap one, but i never had issues with it before. Being forced to copy-paste '@'-symbol(or having all IDE-windows closed) and random IDE text size shrinking to 1 or so is getting cumbersome.

astral pecan
cold gyro
west flicker
#

@astral pecan isn't this simply a matterof setting to the correct keyboard? or is this some special case that cannot be reproduced otherwise? I

#

on my work cpmputer I have UK/NO/US international keyboard layouts set in windows, in order to be able to type as though my keyboard were any of those. Even though the phsyical keyboard is a Norwegian scandinavian one. I am positive it is the same with Swedish ones, as I studied there too.

astral pecan
astral pecan
#

I saw your message lol

#

I'm going to ask someone else too @fiery night You're German if I'm not mistaken, do you have any issues with the IDE? Do you have a keyboard like Konfusiuz? 105 keys?

cold gyro
#

Oh well, that's strange. I mean, my keyboard is just a standard usb CHERRY keyboard. It just works well with basically everything. There is not much to configure on windows OS either. Its just says "CHERRY Corded Device" and that its working.

I swapped to Windows for gaming purposes mostly few years back, even though i was comfortable using Linux back then. Now, I do think about switching to Linux, with all the positive developments plus the promising steam OS news.

There is just one more thought i have regarding the issue. Its, that with a successful marketting campaign, you propably don't want this issues to be around and people spamming bug reports with that and maybe get upset, considering that (hopefully) people from all corners of the world will join with even stranger language settings. So its your your consideration if its an important issue or not, but i think it maybe important, in the long run, to solve it or have some kind of support (perhaps help forum or so).

Thanks a lot for the efforts @astral pecan anyhow. And best wishes for the game and thanks for being such great and present devs !

astral pecan
#

I'll try to reproduce it again with other layouts

cold gyro
#

I will see if i can find a way to fix it, perhaps with a new user profile. I don't feel like i'm of big help right now, but i will tell if i find anything.

west flicker
sullen olive
sullen olive
#

didn't have it in a while tho
but I didn't code a lot aswell (I did mining n shit but now I have to code an autocrafter, will let you know if it happens again.)
(je peux parler français mais je préfère rester en anglais pr que tout le monde comprenne)

astral pecan
#

Let's stay in English, yes. There might be a toggle effect once AltGr has been pressed, I'll dig into that.

fiery night
tough crane
#

Issue persists in most recent versions. Can still confirm that this does not show up in any other program, that none of my keyboards are malfunctioning and that only exactly the IDE of this game treats alt+gr as "sticky control+" and the random appearance of more than three cursors (on singleplayer world, even, maybe some sanity check is in order for text entry cursors) and random other options opening up when typing after attempting to produce any keyboard characters, including some shift+ characters like =?+*^ etc also cause random things to happen.

#

I also do not get why people with other language keyboards who do not have this issue chime in, my keyboards are not broken and neither are my drivers, the issue is very specific to danish keyboards that are slightly different from other scandinavian keyboards

#

Also Danish keyboard != (German | Czech | Spanish | French | Swedish | Norwegian)

soft solar
#

Flo bought some kind of german keyboard to try and reproduce, it's the only thing he was able to find.
We want to help and fix this but we need to be able to find the problematic keyboard and buy it, we can't just blindly issue potential fixes.
We're just a small team of two developers, with the total budget of half a salary (the game is very niche so we're not making many sales at all).
Anyways my point is we need help with this one, do you have a specific amazon link for such keyboard? One that can be bought from either France, Canada or US?
or any other store that can deliver to one of these countries?

tough crane
#

"danish usb keyboard amazon" in google, first result

#

but it really just seems like dodgy/nonstandard logic for checking for keypress combos with whatever code handles IDE and chatbox text entry, I cant say much since the relevant code is not visible to me, I really dont know what one would have to do wrong to cause this with SDL. and whatever causes the apperance of several extra cursors typing all over the place, random selection of text, saving, loading, deleting, cutting, pasting, etc. after writing a single $ or @ absolutely eludes me

soft solar
tough crane
#

I can compile it and see if that reproduces the issue, if you want

#

couldve sworn i saw an SDL dll in the folder but i might be mixing stuff up

#

ive worked with GLFW, myself

soft solar
#

The kb code had been modified to try and fix your issue.
But it seems it didn’t fix it..

tough crane
#

argh vietnam flashbacks from C++ and "bloat free" libraries, oh well, anything for my ancient space cyborg coffee quest

#

wow this imgui io stuff is a load of baloney i feel sorry for devs that have to fight this

#

gonna look for obvious errors and then if not see if I can get this hooked up in my build env tomorrow thanks for linking, much easier to help out here

#

i can already see massive bruh moments with the general structure of imgui itself

#

will ping once i got actual concrete data :D

#

just crazy that the code is this dense for something this simple, its like a few orders of magnitude larger than the driver code I worked on in C and Forth

soft solar
#

Thanks for helping out

tough crane
#

progress: Finally strongarmed dearimgui itself to build, issue does not present in the example

#

sorry for latency, im working on this now

#

Right so I am still working on figuring out how to get your IDE to build with my build system but preliminarily I recognize that imgui does not distinguish between alt and alt+gr

#

or well, it does, but not on keymod state

#

also RALT is being misinterpreted as control in terms of character movement, too

#

I noticed in the code you sent me that it configures for macosx keyboard support, or looks like it, considering that mac support is never going to happen, why is this retained?

tough crane
#

sneaking suspicion: F button fix might have fixed this too because I can replicate sticky ctrl with alt under very specific circumstances in the pure imguy example application

#

will write a bunch of code in ingame ide to test

tough crane
#

Ùpdate: can't reproduce the glitchy behaviour so far, but trying to make a ? (shift+'+') sign results text size being reducd

#

code is impossibly small to read now and IDK what key to hit on a danish keyboard with shift to get it back

#

deleting the code and reopening a new file with the same name doesnt help either

#

oh its ctrl+'+' and ctrl+'´' for me

tough crane
#

okay so its an imgui thing and not a you thing, it registers right alt as a left alt modifier, this can be patched by implementing keymod flags for RALT and LALT, it would be too wide and breaking an issue and it would pique the american software exceptionalists hard for a request to their branch so I will patch it and test it on my own and forward the file to you guys

#

there are still issues with it registering certain key combos and alt+gr can sometimes cause it to unfocus from the text and highlight the bars, I highly suspect the fix I am proposing would rectify this issue

#

hmm it still happen sometimes but it is harder to reproduce

#

nevermind it seems to still happen, albeit less frequently, I think its due to poor handling on imgui's part of "stuck" modifier flags and stuck keys

#

but the fact that the stuck F key thing isnt happening anymore that is one key that isnt randomly popping up