International keyboard support (Developers)
Unfortunately, it's not as simple as all that (even though that's far from simple in itself).
There are also some keyboard that have multiple "modes" they can be in. For example, at least some versions of Cyrillic keyboards have "Cyrillic Mode" (for typing in Russian or a similar language) and a Latin Mode (for typing in English). Even if you can identify which keyboard driver is loaded (some keyboard drivers have a way to do that and others don't) you also may need identify which Mode it's in. Again, some keyboard drivers provide a way to do that and others don't.
And there's also the problem of "custom" keyboard layouts that don't follow any particular widely recognized "standard". There are also keyboard layouts that are available in, e.g., a Windows command prompt that have never had a DOS equivalent made.
It gets really complicated and really ugly very quickly unless you're going to limit yourself to certain "common" scenarios. I had to go through this as I was writing my SCANCODE program (which can "type" scancodes for you automatically).
Complete thread:
- International keyboard support - mbbrutman, 21.01.2023, 21:44 (Developers)
- International keyboard support - marcov, 22.01.2023, 14:19
- International keyboard support - tom, 22.01.2023, 18:06
- International keyboard support - Laaca, 22.01.2023, 21:55
- International keyboard support - mbbrutman, 22.01.2023, 22:46
- International keyboard support - Laaca, 23.01.2023, 00:20
- International keyboard support - bretjohn, 23.01.2023, 18:12
- International keyboard support - mbbrutman, 23.01.2023, 23:51
- International keyboard support - bretjohn, 24.01.2023, 21:10
- International keyboard support - tom, 12.02.2023, 18:39
- International keyboard support - bretjohn, 13.02.2023, 15:35
- International keyboard support - tom, 13.02.2023, 18:36
- International keyboard support - bretjohn, 14.02.2023, 04:51
- International keyboard support - tkchia, 13.02.2023, 20:13
- International keyboard support - bretjohn, 14.02.2023, 05:05
- International keyboard support - tom, 13.02.2023, 18:36
- International keyboard support - bretjohn, 13.02.2023, 15:35
- International keyboard support - mbbrutman, 23.01.2023, 23:51
- International keyboard support - tom, 14.02.2023, 12:17
- International keyboard support - tom, 15.02.2023, 13:19
- International keyboard support - marcov, 15.02.2023, 18:14
- International keyboard support - tom, 15.02.2023, 21:31
- International keyboard support - mbbrutman, 18.02.2023, 03:17
- International keyboard support - Aitor, 06.03.2023, 01:09
- International keyboard support - mbbrutman, 18.02.2023, 03:17
- International keyboard support - tom, 15.02.2023, 21:31
- International keyboard support - marcov, 15.02.2023, 18:14
- International keyboard support - tom, 15.02.2023, 13:19
- International keyboard support - mbbrutman, 22.01.2023, 22:46