kodi-game / controller-topology-project

The Controller Topology Project models how controllers connect to and map to each other for all gaming history
Open Data Commons Open Database License v1.0
21 stars 15 forks source link

keyboard: Sort keys in the order they appear on a standard US layout keyboard #290

Closed garbear closed 5 months ago

garbear commented 5 months ago

Description

To facilitate mapping, we sort features roughly in the order they appear in the layout image. This lets the user zoom through mapping, because they can just slide their finger across the keyboard instead of hunting-and-pecking keys in the order A-Z.

For the keyboard, it shows the IBM Model M keyboard:

IBM Model M

I actually used a classic Dell keyboard that is a more modernized version (it has Windows keys) but still in the same order. With this PR, we map the keys in the order of the classic Dell keyboard, which makes button mapping a full keyboard a much better experience.

How has this been tested?

Tested on Linux with the XKB keypad fix (https://github.com/xbmc/xbmc/pull/24639). All present keys map successfully.