I was just wondering, what's the easiest way to get the EKEY_CODE given a charsequence or string that represents that character (i.e. turn 'e' into KEY_KEY_E)? I could always make a static map myself, but that would be huge and would probably contain holes with my code quality
Does Irrlicht provide a way to do this, or will I have to map it myself?
Static key to char map?
Re: Static key to char map?
You'll have to go with your own map. It's somewhat unusual going in that direction.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: Static key to char map?
Okay. Nice to know that, since it's hard to search an api for something that may or may not exist. I might write my own map, or figure an alternative.