Merge branch 'master' of https://gitea.sustancia.synology.me/JailDoctor/thepool
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include "m_logo.h"
|
||||
#include "jdraw.h"
|
||||
#include "jinput.h"
|
||||
#include "controller.h"
|
||||
#include "jaudio.h"
|
||||
#include "config.h"
|
||||
#include <SDL2/SDL.h>
|
||||
@@ -58,11 +59,7 @@ namespace modules
|
||||
|
||||
bool loop()
|
||||
{
|
||||
if (input::keyPressed(SDL_SCANCODE_ESCAPE) ||
|
||||
input::keyPressed(SDL_SCANCODE_SPACE) ||
|
||||
input::keyPressed(SDL_SCANCODE_RETURN) ||
|
||||
input::keyPressed(config::getKey(KEY_JUMP)) ||
|
||||
input::keyPressed(config::getKey(KEY_PICK)) ) {
|
||||
if (input::keyPressed(SDL_SCANCODE_ESCAPE) || controller::pressed(KEY_JUMP) || controller::pressed(KEY_PICK) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user