- [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:
2024-10-02 20:40:10 +02:00
parent c92f2a13aa
commit 1f6956ad81
15 changed files with 85 additions and 48 deletions

16
source/controller.cpp Normal file
View File

@@ -0,0 +1,16 @@
#include "controller.h"
#include "jinput.h"
#include "config.h"
namespace controller
{
const bool down(const int which)
{
return input::keyDown(config::getKey(which)) || input::padBtnDown(config::getPadBtn(which));
}
const bool pressed(const int which)
{
return input::keyPressed(config::getKey(which)) || input::padBtnPressed(config::getPadBtn(which));
}
}