Added Internal GameInformations

This commit is contained in:
Julian Nießner
2018-05-07 17:09:34 +02:00
parent 51eff2d983
commit 20c180acd8
3 changed files with 17 additions and 0 deletions

View File

@@ -4,6 +4,8 @@
#include <SDL_image.h>
#include <GL/glew.h>
#include "Desktoplauncher.h"
#include "DarkRP2D.h"
using namespace std;

12
src/DesktopLauncher.h Normal file
View File

@@ -0,0 +1,12 @@
#ifndef DESKTOPLAUNCHER_H
#define DESKTOPLAUNCHER_H
namespace Game {
#define WINDOW_WIDTH = 800;
#define WINDOW_HEIGHT = 600;
void exit(int code);
}
#endif

View File

@@ -15,6 +15,9 @@ Command* InputHandler::handleInput(SDL_Event *event) {
return NULL;
}
switch (event->type) {
case SDL_QUIT:
return NULL;
break;
case SDL_KEYDOWN:
std::cout << "The Key " << SDL_GetKeyName(event->key.keysym.sym) << " has been pressed!" << std::endl;
return NULL;