00001 /* 00002 Irrlicht Library Wrapper 00003 Created by: 00004 Nathan Adams 00005 Denzel Morris 00006 Copyright (C) 2007 00007 00008 This software is licensed under the GNU/GPL. 00009 This software may not be used for commerical purposes. 00010 */ 00011 00012 #ifndef IRREVENTRECIEVER_H 00013 #define IRREVENTRECIEVER_H 00014 00015 //#include "IrrLib.h" 00016 #include <vector> 00017 #include <irrlicht.h> 00018 #include "IrrLibBase.h" 00019 #include "IrrData.h" 00020 #include <stdlib.h> 00021 00022 00023 00024 class IrrEventReciever : public irr::IEventReceiver, public IrrLibBase 00025 { 00026 private: 00027 //IrrLib callingIrrLib; 00028 _mouse mouse; 00029 bool escexit; 00030 std::vector<int> buttonStates; 00031 std::vector<int> listStates; 00032 public: 00033 bool mouseStates[1]; 00034 IrrEventReciever(); 00035 int getMouseX(); 00036 int getMouseY(); 00037 bool keyStates[irr::KEY_KEY_CODES_COUNT]; 00038 //void setIrrLib(IrrLib& IrrLib) 00039 virtual bool OnEvent(irr::SEvent event); 00040 void SetEscExit(bool onoff); 00041 int getButtonState(); 00042 int getRevButtonState(); 00043 void clearButtonState(); 00044 int checkButtonState(IrrObj obj); 00045 void delLastButtonState(); 00046 bool isButtonStateEmpty(); //is there still stuff in the vector to be done? NA 00047 int checkListState(IrrObj obj); 00048 void delLastListState(); 00049 }; 00050 00051 #endif
1.5.4