Simple HelloWorld Event for understanding.

This commit is contained in:
Stiffly
2015-09-09 18:42:08 +02:00
parent 80d98470e9
commit fbeb1fb9a6
5 changed files with 58 additions and 19 deletions
+16 -2
View File
@@ -1,9 +1,23 @@
//
// Created by Adam on 2015-09-09.
//
#include "PrecompiledHeader.h"
#include "Core/Sound.h"
void dd::Sound::HelloWorld()
void dd::Systems::Sound::Init()
{
std::cout << "Hej världen!" << std::endl;
}
void dd::Systems::Sound::HelloWorld()
{
LOG_INFO("Hej världen!");
}
bool dd::Systems::Sound::OnKeyDown(const dd::Events::KeyDown &event)
{
// #define GLFW_KEY_S 83
if(event.KeyCode == 83){
HelloWorld();
}
}