Blender V2.61 - r43446

GHOST_NDOFManagerWin32.cpp

Go to the documentation of this file.
00001 /*
00002  * 
00003  * ***** BEGIN GPL LICENSE BLOCK *****
00004  *
00005  * This program is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU General Public License
00007  * as published by the Free Software Foundation; either version 2
00008  * of the License, or (at your option) any later version. 
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software Foundation,
00017  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00018  *
00019  * Contributor(s):
00020  *   Mike Erwin
00021  *
00022  * ***** END GPL LICENSE BLOCK *****
00023  */
00024 
00025 #ifdef WITH_INPUT_NDOF // use contents of this file
00026 
00027 #include "GHOST_NDOFManagerWin32.h"
00028 
00029 
00030 GHOST_NDOFManagerWin32::GHOST_NDOFManagerWin32(GHOST_System& sys)
00031     : GHOST_NDOFManager(sys)
00032 {
00033     setDeadZone(0.1f);
00034 }
00035 
00036 // whether multi-axis functionality is available (via the OS or driver)
00037 // does not imply that a device is plugged in or being used
00038 bool GHOST_NDOFManagerWin32::available()
00039 {
00040     // always available since RawInput is built into Windows
00041     return true;
00042 }
00043 
00044 #endif // WITH_INPUT_NDOF