- [NEW] Menú de redefinició de tecles acabat
- [NEW] Les tecles es guarden al arxiu de config
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user