Function to get a key from name is needed.

Issue #309 new
Miloslav Číž created an issue

In key module, there is a function that gets the name from a key code, but there is no function that does the opposite, i.e. get the key code from name. It would be easy to implement, just call SDL_GetKeyFromName.

It is needed because when for example someone uses the name() function to store key mappings in readable format, it is hard to load the key mapping back.

Comments (2)

  1. Log in to comment