HomeWildfire Games

Try to recognise unknown hotkey mappings using SDL2.

Description

Try to recognise unknown hotkey mappings using SDL2.
This improves our international keyboard until we completely rework the hotkey system which seems to be quite legacy at this point.

Reviewed by Itms.
Differential Revision: https://code.wildfiregames.com/D303

Event Timeline

This improves our international keyboard until we completely rework the hotkey system which seems to be quite legacy at this point.

I'm not sure what you consider lacking in our hotkey system (apart from nobody having implemented a way to set hotkeys in the gui), but I guess just wanting to rewrite everything that isn't broken is just what you do.

wraitii added a comment.EditedMay 21 2017, 8:59 PM

I'm not sure what you consider lacking in our hotkey system (apart from nobody having implemented a way to set hotkeys in the gui),

Well that for one thing, also the fact that pretty much all the code to handle specific key mappings is useless since we can safely use SDL_GetKeyFromName anywhere. That's like 40% of the code.

Edit: and well unitMotion is broken, so I don't see what you mean.