- [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:
16
source/controller.cpp
Normal file
16
source/controller.cpp
Normal 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));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user