#include "jutil.h" #include #include #include namespace util { int stringToInt(const char *value, std::vector strings, std::vector values) { char lowercase[255]; strcpy(lowercase, value); for (int i=0; i= SDL_SCANCODE_1 && scancode <= SDL_SCANCODE_9) return scancode+19; if (scancode >= SDL_SCANCODE_KP_1 && scancode <= SDL_SCANCODE_KP_9) return scancode-40; if (scancode >= SDL_SCANCODE_A && scancode <= SDL_SCANCODE_Z) return scancode+61; //if (scancode == SDL_SCANCODE_MINUS) return '-'; return '-'; } }