[0.16.50] AltGr keybinding acting totally weird
- SuperSandro2000
- Filter Inserter
- Posts: 741
- Joined: Sun Jan 12, 2014 3:54 am
- Contact:
[0.16.50] AltGr keybinding acting totally weird
When I change a control to the AltGr key it only works if I press AltGr and then Ctrl or Alt in that order or if I press Alt and then Ctrl.
Please call me simply Sandro.
My Main Mods: Sandro's fixes, Expanded Rocket Payloads Touched by an AngelBob and more can be found here
My Main Mods: Sandro's fixes, Expanded Rocket Payloads Touched by an AngelBob and more can be found here
Re: [0.16.50] AltGr keybinding acting totally weird
What keyboard layout you use, some keyboard layouts treat altgrvdifferent 2ay (like prefix key), some make no difference between alt and altgr.
Also your os, and (if it’s linux), your window manager
Also your os, and (if it’s linux), your window manager
- SuperSandro2000
- Filter Inserter
- Posts: 741
- Joined: Sun Jan 12, 2014 3:54 am
- Contact:
Re: [0.16.50] AltGr keybinding acting totally weird
German keyboard layout Windows 10 and Ctrl + Alt should equal AltGr and not some weird combining of both.mexmer wrote:What keyboard layout you use, some keyboard layouts treat altgrvdifferent 2ay (like prefix key), some make no difference between alt and altgr.
Also your os, and (if it’s linux), your window manager
Please call me simply Sandro.
My Main Mods: Sandro's fixes, Expanded Rocket Payloads Touched by an AngelBob and more can be found here
My Main Mods: Sandro's fixes, Expanded Rocket Payloads Touched by an AngelBob and more can be found here
Re: [0.16.50] AltGr keybinding acting totally weird
Thanks for the report. Input handling is changing in 0.17 with the re-work of the graphics backend so this may be solved for 0.17.
Regarding your current issue: can you verify that when you press the key on your keyboard it produces a distinct scan code over the left alt key?
If it's doing what I think it's doing then it's simply not going to work. That is: if it's not producing its own scan code and just sending shift + ctrl at the same time when pressed.
Regarding your current issue: can you verify that when you press the key on your keyboard it produces a distinct scan code over the left alt key?
If it's doing what I think it's doing then it's simply not going to work. That is: if it's not producing its own scan code and just sending shift + ctrl at the same time when pressed.
If you want to get ahold of me I'm almost always on Discord.
- eradicator
- Smart Inserter
- Posts: 5206
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: [0.16.50] AltGr keybinding acting totally weird
Just for reference, on my german keyboard pressing e.g. AltGr+R produces (Windows 8):
The keyboard has a seperate RControl, but no seperate RAlt key. If i assign the above to reverse-rotate it works fine in-game, but pressing LControl+LAlt+R (or RControl+LAlt+R) does too, so the game makes no differece between R/L variants?
Code: Select all
VK SC Type Up/Dn Elapsed Key
-----------------------------------
#AltGr+R
A2 01D d 0.56 LControl
A5 138 d 0.02 RAlt
52 013 d 0.09 R
52 013 u 0.16 R
A2 01D u 0.06 LControl
A5 138 u 0.00 RAlt
#LControl+LAlt+R
A2 01D d 0.44 LControl
A4 038 # d 0.05 LAlt
52 013 d 0.38 R
A2 01D u 0.19 LControl
A4 038 u 0.00 LAlt
52 013 u 0.00 R
Re: [0.16.50] AltGr keybinding acting totally weird
Sounds plausable. The game makes no distinction between enter and numpad enter either because they're not useful distinctions to the game. I've personally never seen a keyboard with "AltGr" (all of my US keyboards just say "Alt" on both alt keys).eradicator wrote:The keyboard has a seperate RControl, but no seperate RAlt key. If i assign the above to reverse-rotate it works fine in-game, but pressing LControl+LAlt+R (or RControl+LAlt+R) does too, so the game makes no differece between R/L variants?
Possibly the only way to make this work for everyone is to add some option to make the game treat left/right variants of keys as distinct. First we would have to go through the code base and make sure everything that wanted to listen to "alt" listened to both or a specific one if it meant a specific one.
If you want to get ahold of me I'm almost always on Discord.
- eradicator
- Smart Inserter
- Posts: 5206
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: [0.16.50] AltGr keybinding acting totally weird
I don't think i've ever seen one without :D. Not inside of Germany anyway. (Due to that my muscle memory considers them inheritely different. I think shift is the only key i consider "the same" for R/L, but even RCtrl i don't consider "the same" as LCtrl and would thus never try to substitude one for the other when typing.)Rseding91 wrote:I've personally never seen a keyboard with "AltGr" (all of my US keyboards just say "Alt" on both alt keys).
According to wiki there's a few other countries (including US) that have layouts with AltGr https://en.wikipedia.org/wiki/AltGr#German. Out of curiosity: Do the RAlts on your keyboards actually only trigger RAlt, or does the keyboard driver make them into AltGr but you never noticed?
I wonder how other games handle that. My perception is too biased to tell if anyone would be bothered by RCtrl/RAlt being "different" keys.Rseding91 wrote: Possibly the only way to make this work for everyone is to add some option to make the game treat left/right variants of keys as distinct. First we would have to go through the code base and make sure everything that wanted to listen to "alt" listened to both or a specific one if it meant a specific one.
Re: [0.16.50] AltGr keybinding acting totally weird
In Farming Simulator the are different keys because you need a lot of them.
- SuperSandro2000
- Filter Inserter
- Posts: 741
- Joined: Sun Jan 12, 2014 3:54 am
- Contact:
Re: [0.16.50] AltGr keybinding acting totally weird
Most things I know even treat all numpad keys and both mirrored keys differently. I would suggest to differentiate all keys from one another.Rseding91 wrote:Sounds plausable. The game makes no distinction between enter and numpad enter either because they're not useful distinctions to the game. I've personally never seen a keyboard with "AltGr" (all of my US keyboards just say "Alt" on both alt keys).eradicator wrote:The keyboard has a seperate RControl, but no seperate RAlt key. If i assign the above to reverse-rotate it works fine in-game, but pressing LControl+LAlt+R (or RControl+LAlt+R) does too, so the game makes no differece between R/L variants?
Possibly the only way to make this work for everyone is to add some option to make the game treat left/right variants of keys as distinct. First we would have to go through the code base and make sure everything that wanted to listen to "alt" listened to both or a specific one if it meant a specific one.
Please call me simply Sandro.
My Main Mods: Sandro's fixes, Expanded Rocket Payloads Touched by an AngelBob and more can be found here
My Main Mods: Sandro's fixes, Expanded Rocket Payloads Touched by an AngelBob and more can be found here