This is example of implemenation Contols system based on aliases. This sample was craeted for artile. Controls system itself was created for Atum game engine.
Links articles:
https://habrahabr.ru/post/343832/ (Russain) https://www.gamedev.net/articles/programming/general-and-gameplay-programming/architecture-of-system-for-reading-input-devices-part-2-r4818/ (English)
Link to Atim Engine: https://github.com/ENgineE777/Atum