/* Irrlicht Library Wrapper Created by Nathan Adams Copyright (C) 2007 This software is licensed under the GNU/GPL. This software may not be used for commerical purposes. */ #include "IrrEventReciever.h" #include "IrrLib.h" #include #include using namespace irr; using namespace core; using namespace scene; using namespace video; using namespace io; using namespace gui; using namespace std; bool IrrEventReciever::OnEvent(SEvent event) { if (event.EventType == irr::EET_KEY_INPUT_EVENT) { if (!event.KeyInput.PressedDown) //keyStates[event.KeyInput.Key] = true; cout << "Key was hit: " << event.KeyInput.Key << endl; //else //cout << "Key was not hit" << endl; //keyStates[event.KeyInput.Key] = false; } return false; }