|
Blender
V2.59
|
00001 /* 00002 * $Id: GHOST_NDOFManagerCocoa.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_NDOFMANAGERCOCOA_H_ 00027 #define _GHOST_NDOFMANAGERCOCOA_H_ 00028 00029 #ifdef WITH_INPUT_NDOF 00030 00031 #include "GHOST_NDOFManager.h" 00032 00033 // Event capture is handled within the NDOF manager on Macintosh, 00034 // so there's no need for SystemCocoa to look for them. 00035 00036 class GHOST_NDOFManagerCocoa : public GHOST_NDOFManager 00037 { 00038 public: 00039 GHOST_NDOFManagerCocoa(GHOST_System&); 00040 00041 ~GHOST_NDOFManagerCocoa(); 00042 00043 // whether multi-axis functionality is available (via the OS or driver) 00044 // does not imply that a device is plugged in or being used 00045 bool available(); 00046 00047 private: 00048 unsigned short m_clientID; 00049 }; 00050 00051 00052 #endif // WITH_INPUT_NDOF 00053 #endif // #include guard