/* Irrlicht Library Wrapper Created by: Nathan Adams Copyright (C) 2008 This software is licensed under the GNU/GPL. This software may not be used for commerical purposes. */ #ifndef IRREVENTRECIEVER_H #define IRREVENTRECIEVER_H //#include "IrrLib.h" #include #include #include "IrrLibBase.h" #include "IrrDefines.h" #include #include "_mouse.h" class IrrEventReciever : public irr::IEventReceiver, public IrrLibBase { private: //IrrLib callingIrrLib; _mouse mouse; bool escexit; std::vector buttonStates; std::vector listStates; irr::IrrlichtDevice *device; public: //IrrEventReciever(); bool mouseStates[1]; IrrEventReciever(); int getMouseX(); int getMouseY(); bool keyStates[irr::KEY_KEY_CODES_COUNT]; //void setIrrLib(IrrLib& IrrLib) #if IRRVER == 131 virtual bool OnEvent(irr::SEvent event); #else virtual bool OnEvent(const irr::SEvent &event); #endif void SetEscExit(bool onoff); int getButtonState(); int getRevButtonState(); void clearButtonState(); int checkButtonState(IrrEventObj obj); void delLastButtonState(); bool isButtonStateEmpty(); //is there still stuff in the vector to be done? NA int checkListState(IrrEventObj obj); void delLastListState(); }; #endif