Blender  V2.59
GHOST_NDOFManagerX11.h
Go to the documentation of this file.
00001 /*
00002  * $Id: GHOST_NDOFManagerX11.h 39153 2011-08-07 16:44:10Z merwin $
00003  *
00004  * ***** BEGIN GPL LICENSE BLOCK *****
00005  *
00006  * This program is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU General Public License
00008  * as published by the Free Software Foundation; either version 2
00009  * of the License, or (at your option) any later version. 
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software Foundation,
00018  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00019  *
00020  * Contributor(s):
00021  *   Mike Erwin
00022  *
00023  * ***** END GPL LICENSE BLOCK *****
00024  */
00025  
00026 #ifndef _GHOST_NDOFMANAGERX11_H_
00027 #define _GHOST_NDOFMANAGERX11_H_
00028 
00029 #ifdef WITH_INPUT_NDOF
00030 
00031 #include "GHOST_NDOFManager.h"
00032 
00033 /* Event capture is handled within the NDOF manager on Linux,
00034  * so there's no need for SystemX11 to look for them. */
00035 
00036 class GHOST_NDOFManagerX11 : public GHOST_NDOFManager
00037 {
00038 public:
00039         GHOST_NDOFManagerX11(GHOST_System&);
00040         ~GHOST_NDOFManagerX11();
00041         bool available();
00042         bool processEvents();
00043 
00044 private:
00045         bool m_available;
00046 };
00047 
00048 #endif /* WITH_INPUT_NDOF */
00049 #endif /* #include guard */
00050