Blender V2.61 - r43446

GHOST_EventNDOF.h

Go to the documentation of this file.
00001 /*
00002  * ***** BEGIN GPL LICENSE BLOCK *****
00003  *
00004  * This program is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License
00006  * as published by the Free Software Foundation; either version 2
00007  * of the License, or (at your option) any later version. 
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software Foundation,
00016  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00017  *
00018  * Contributor(s): none yet.
00019  *
00020  * ***** END GPL LICENSE BLOCK *****
00021  */
00022 
00028 #ifndef _GHOST_EVENT_NDOF_H_
00029 #define _GHOST_EVENT_NDOF_H_
00030 
00031 #include "GHOST_Event.h"
00032 
00033 
00034 class GHOST_EventNDOFMotion : public GHOST_Event
00035     {
00036     protected:
00037         GHOST_TEventNDOFMotionData m_axisData;
00038     
00039     public:
00040         GHOST_EventNDOFMotion(GHOST_TUns64 time, GHOST_IWindow* window)
00041             : GHOST_Event(time, GHOST_kEventNDOFMotion, window)
00042             {
00043             m_data = &m_axisData;
00044             }
00045     };
00046 
00047 
00048 class GHOST_EventNDOFButton : public GHOST_Event
00049     {
00050     protected:
00051         GHOST_TEventNDOFButtonData m_buttonData;
00052     
00053     public:
00054         GHOST_EventNDOFButton(GHOST_TUns64 time, GHOST_IWindow* window)
00055             : GHOST_Event(time, GHOST_kEventNDOFButton, window)
00056             {
00057             m_data = &m_buttonData;
00058             }
00059     };
00060 
00061 
00062 #endif // _GHOST_EVENT_NDOF_H_