Skip to content
Snippets Groups Projects
CgWheelEvent.h 505 B
Newer Older
  • Learn to ignore specific revisions
  • ganthern's avatar
    ganthern committed
    #ifndef CGWHEELEVENT
    #define CGWHEELEVENT
    
    #include "../CgBase/CgBaseEvent.h"
    #include "glm/glm.hpp"
    #include <iostream>
    
    class CgWheelEvent: public CgBaseEvent
    {
    public:
    
        CgWheelEvent(Cg::EventType type, float numDegrees);
        ~CgWheelEvent();
    
        Cg::EventType  getType();
        CgBaseEvent* clone();
    
        float numDegrees() const;
    
        friend std::ostream& operator <<(std::ostream& os, const CgWheelEvent& e);
    
    
    private:
    
        Cg::EventType m_type;
        float m_numDegrees;
    };
    
    #endif // CGWHEELEVENT