/* 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. */ #ifndef IRREVENTRECIEVER_H #define IRREVENTRECIEVER_H #include class IrrEventReciever : public IEventReciever { public: virtual bool OnEvent(SEvent event) { if (event.EventType == irr::EET_KEY_INPUT_EVENT) { if (!event.KeyInput.PressedDown) keyStates[event.KeyInput.Key] = true; else keyStates[event.KeyInput.Key] = false; } return false; } }; #endif