|
|
||||||||||||||||||||
![]() |
|||||||||||||||||||||
ceInputDevice.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_DEVICE_H_ 00039 #define _CE_INPUT_DEVICE_H_ 0x1 00041 #ifndef __cplusplus 00042 #error ceInputDevice.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 #include "ceInputEnums.h" 00055 #include "begin_code.h" 00056 00057 namespace ce { 00058 00059 // --- class IInputDevice --- */ 00060 00062 class DECLSPEC IInputDevice 00063 { 00064 public: 00065 00066 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00067 virtual ~IInputDevice(void) { }; 00068 #endif 00069 00073 virtual EInputDevice APICALL 00074 GetDeviceType(void) const = 0; 00075 00079 virtual char* APICALL 00080 GetDeviceName(void) const = 0; 00081 00085 virtual int APICALL 00086 GetDeviceCount(void) const = 0; 00087 00092 virtual int APICALL 00093 IsDevicePresent(const int id = 0x0) const = 0; 00094 00098 virtual void APICALL 00099 Update(const int async = TRUE) = 0; 00100 00101 }; 00102 00103 // --- --- */ 00104 00105 } // end namespace ce 00106 00107 #include "close_code.h" 00108 00109 #if _MSC_VER > 1000 00110 #pragma warning(default:4100) 00111 #endif 00112 00113 #endif // _CE_INPUT_DEVICE_H_
|
|||||||||||||||||||||
|