Closed XuYicong closed 4 months ago
I was considering a way of decreasing the file length. There are three dicts: mapVirtualToName
, mapGCtoName
and mapVirtualToGc
. Actually mapVirtualToName
can be generated from the other two dicts during class initialization. In that way we can both shorten the file length and mitigate the risk of data inconsistency when editing these dicts. Do you think it's a good idea?
I was considering a way of decreasing the file length. There are three dicts:
mapVirtualToName
,mapGCtoName
andmapVirtualToGc
. ActuallymapVirtualToName
can be generated from the other two dicts during class initialization. In that way we can both shorten the file length and mitigate the risk of data inconsistency when editing these dicts. Do you think it's a good idea?
By all means, it would be a better approach for the maintainability of the code.
Can now map more keys on different types of keyboards, including number keypad and function keys up to F20.
Fix controller direction pad issue when setting the key in the keymap editor, where the element has to be unfocused before a D-Pad key is released to be mapped.
Also, testing on an Xbox controller shows the D-Pad up and down key are reversed. They're now swapped back.