Simple HelloWorld Event for understanding.
This commit is contained in:
+16
-2
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user