/* Irrlicht Library Wrapper Created by: Nathan Adams Denzel Morris 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; /*void IrrEventReciever::setIrrLib(IrrLib& IrrLib) { this.callingIrrLib = IrrLib; }*/ bool IrrEventReciever::OnEvent(SEvent event) { if (event.EventType == irr::EET_KEY_INPUT_EVENT) { if (!event.KeyInput.PressedDown) this->keyStates[event.KeyInput.Key] = true; //cout << "Key was hit: " << event.KeyInput.Key << endl; else //cout << "Key was not hit" << endl; this->keyStates[event.KeyInput.Key] = false; } return false; }