Blender V2.61 - r43446

GHOST_NDOFManagerX11.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):
00019  *   Mike Erwin
00020  *
00021  * ***** END GPL LICENSE BLOCK *****
00022  */
00023  
00024 #ifndef _GHOST_NDOFMANAGERX11_H_
00025 #define _GHOST_NDOFMANAGERX11_H_
00026 
00027 #ifdef WITH_INPUT_NDOF
00028 
00029 #include "GHOST_NDOFManager.h"
00030 
00031 /* Event capture is handled within the NDOF manager on Linux,
00032  * so there's no need for SystemX11 to look for them. */
00033 
00034 class GHOST_NDOFManagerX11 : public GHOST_NDOFManager
00035 {
00036 public:
00037     GHOST_NDOFManagerX11(GHOST_System&);
00038     ~GHOST_NDOFManagerX11();
00039     bool available();
00040     bool processEvents();
00041 
00042 private:
00043     bool m_available;
00044 };
00045 
00046 #endif /* WITH_INPUT_NDOF */
00047 #endif /* #include guard */
00048