- [FIX] No se cridava a SDL_Init()
- [FIX] Ja funciona el gamepad - [CHG] Canviat el format del temps en la pantalla de game over - [CHG] Canvi en una habitació per a balancejar
This commit is contained in:
@@ -59,14 +59,14 @@ namespace config
|
||||
|
||||
void definePadBtn(const int which, const int btn)
|
||||
{
|
||||
static const char* nomtecles[6] = {"btnup", "btndown", "btnleft", "btnright", "btnjump", "btnpick"};
|
||||
static const char* nombotons[6] = {"btnup", "btndown", "btnleft", "btnright", "btnjump", "btnpick"};
|
||||
pad_btns[which] = btn;
|
||||
char tmp[5];
|
||||
file::setConfigValue(nomtecles[which], SDL_itoa(btn, tmp, 10));
|
||||
file::setConfigValue(nombotons[which], SDL_itoa(btn, tmp, 10));
|
||||
}
|
||||
|
||||
const int getPadBtn(const int which)
|
||||
{
|
||||
return keys[which];
|
||||
return pad_btns[which];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user