00001 #ifndef TILTEVENT_H 00002 #define TILTEVENT_H 00003 00004 #include "Types.h" 00005 00006 namespace RenderTools{ 00007 00008 class TiltEvent { 00009 public: 00010 enum Type { 00011 TILT_START, 00012 TILT_STOP, 00013 TILT_CHANGED 00014 }; 00015 00016 TiltEvent( Type type, const Vec3 & orientation = Vec3() ); 00017 00018 Type getType( void ) const; 00019 const Vec3 & getOrientation( void ) const; 00020 00021 private: 00022 Type m_type; 00023 Vec3 m_orientation; 00024 }; 00025 00026 }; // namespace 00027 00028 #endif 00029
1.5.8