tresinformal / drakkar

The tresinformal video game called 'Drakkar'
GNU General Public License v3.0
11 stars 4 forks source link

Smarter way to translate string to SFML key #530

Open EvoLandEco opened 2 years ago

EvoLandEco commented 2 years ago

@richelbilderbeek suggests we can use a look-up std::map to improve the currently clumsy and incomplete function to_sfml_key() which is located in key_action_map.cpp

EvoLandEco commented 2 years ago

https://github.com/Bromeon/Thor/blob/master/src/InputNames.cpp The library Thor has already implemented similar functions. I put the link here as a reference