|
|
||||||||||||||||||||
![]() |
|||||||||||||||||||||
ceInputEnums.h
Go to the documentation of this file.
00001 00002 /* --- Source License 00003 * Author : FX Programmer. 00004 * Contact : CorEngine@gmail.com 00005 * 00006 * Copyright (c) 2010 by FX Programmer. 00007 * 00008 * This source code is free software; you can redistribute it and/or modify it 00009 * under the terms of the GNU Lesser General Public License as published by 00010 * the Free Software Foundation; either version 2.1 of the License, or 00011 * (at your option) any later version. 00012 * 00013 * This source code is distributed in the hope that it will be useful, but 00014 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 00015 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 00016 * License for more details. 00017 * 00018 * Redistribution and use in source and binary forms, with or without 00019 * modification, are permitted provided that the following conditions are met: 00020 * 1. The origin of this software must not be misrepresented; you must not 00021 * claim that you wrote the original software. If you use this software 00022 * in a product, an acknowledgement in the product documentation would be 00023 * appreciated but is not required. 00024 * 2. Altered source versions must be clearly marked as such, and must not 00025 * be misrepresented as being the original software. 00026 * 3. Redistributions of source code must retain the above copyright 00027 * notice, this list of conditions and the following disclaimer. 00028 * 00029 * You should have received a copy of the GNU Lesser General Public License 00030 * along with this source code; if not, write to the Free Software Foundation, 00031 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 00032 */ 00033 00038 #ifndef _CE_INPUT_ENUMS_H_ 00039 #define _CE_INPUT_ENUMS_H_ 0x1 00041 #ifndef __cplusplus 00042 #error ceInputEnums.h requires C++ compilation (use a .cpp suffix) 00043 #endif 00044 00045 #if __GNUC__ >= 0x3 00046 #pragma GCC system_header 00047 #endif 00048 00049 #if _MSC_VER > 1000 00050 #pragma once 00051 #pragma warning(disable: 4100) 00052 #endif 00053 00054 namespace ce { 00055 00056 // --- enum EInputDriver --- */ 00057 00059 enum EInputDriver 00060 { 00061 InputDriver_Null = 0x0, 00062 InputDriver_AutoDetect, 00063 // InputDriver_SDL, //!< SDL driver (optional). 00064 InputDriver_Native, 00065 00066 #if defined(_WIN32) || defined(__WIN32__) 00067 // InputDriver_DInput7, //!< DirectInput 7 driver. 00068 // InputDriver_DInput8, //!< DirectInput 8 driver. 00069 // InputDriver_DInput9, //!< DirectInput 9 driver. 00070 #else 00071 // InputDriver_DInput7 = InputDriver_AutoDetect, 00072 // InputDriver_DInput8 = InputDriver_AutoDetect, 00073 // InputDriver_DInput9 = InputDriver_AutoDetect, 00074 #endif 00075 00076 InputDriver_Count 00077 }; 00078 00079 // --- --- */ 00080 00081 // --- enum EInputDevice --- */ 00082 00084 enum EInputDevice 00085 { 00086 InputDevice_Null = 0x0, 00087 InputDevice_Unknown = InputDevice_Null, 00088 InputDevice_Keyboard, 00089 InputDevice_Mouse, 00090 InputDevice_Joystick, 00091 // InputDevice_Tablet, //!< Tablet driver. 00092 // InputDevice_MultiTouch, //!< MultiTouch driver. 00093 00094 InputDevice_Count 00095 }; 00096 00097 // --- --- */ 00098 00099 } // end namespace ce 00100 00101 #if _MSC_VER > 1000 00102 #pragma warning(default:4100) 00103 #endif 00104 00105 #endif // _CE_INPUT_ENUMS_H_
|
|||||||||||||||||||||
|