- [NEW] Menú de redefinició de tecles acabat

- [NEW] Les tecles es guarden al arxiu de config
This commit is contained in:
2024-07-09 09:41:53 +02:00
parent 4d91e86178
commit b6e9310a38
4 changed files with 72 additions and 29 deletions

View File

@@ -45,7 +45,10 @@ namespace config
void defineKey(const int which, const int key)
{
static const char* nomtecles[6] = {"keyup", "keydown", "keyleft", "keyright", "keyjump", "keypick"};
keys[which] = key;
char tmp[5];
file::setConfigValue(nomtecles[which], SDL_itoa(key, tmp, 10));
}
const int getKey(const int which)