Add MathEngineTest and Commects and clean ups

This commit is contained in:
2018-08-18 20:50:06 -04:00
parent bd3c111fa1
commit a815367c9d
52 changed files with 386 additions and 144 deletions
@@ -28,10 +28,10 @@ cEvent::cEvent()
OnMouseMove(event.motion.x, event.motion.y, event.motion.xrel, event.motion.yrel, (event.motion.state&SDL_BUTTON(SDL_BUTTON_LEFT)) != 0, (event.motion.state&SDL_BUTTON(SDL_BUTTON_RIGHT)) != 0, (event.motion.state&SDL_BUTTON(SDL_BUTTON_MIDDLE)) != 0);
break;
case SDL_MOUSEBUTTONDOWN:
OnMouseButtonUp(event);
OnMouseButtonDown(event);
break;
case SDL_MOUSEBUTTONUP:
OnMouseButtonDown(event);
OnMouseButtonUp(event);
break;
case SDL_JOYAXISMOTION:
OnJoyAxis(event.jaxis.which, event.jaxis.axis, event.jaxis.value);
@@ -67,6 +67,7 @@ namespace EventEngine {
virtual void OnExit();
virtual void OnUser( Uint32 type, int code, void* data1, void* data2 );
private:
void OnWindowsEvent( const SDL_Event& event );
void OnMouseButtonDown( const SDL_Event& event );
@@ -24,7 +24,7 @@ namespace EventEngine {
static cEventControl& Inst();
static void Delete();
//Functions
/// Functions
const bool Initialize() const;
const bool Setup();
@@ -39,13 +39,14 @@ namespace EventEngine {
std::vector<EventEngine::cEvent*>& GetEvents();
///Sets
/// Sets
///Gets
/// Gets
/* Gets return true if Event was initialized */
const bool IsInit() const;
private:
/// Variables
std::vector<cEvent*> m_children;
static cEventControl* sp_inst;// = nullptr
};/// END CLASS DEFINITION cEventControl