Added Internal GameInformations
This commit is contained in:
@@ -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
12
src/DesktopLauncher.h
Normal 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
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user