PixelLightAPI
.
|
00001 /*********************************************************\ 00002 * File: PLInputDefinitions.h * 00003 * 00004 * Copyright (C) 2002-2012 The PixelLight Team (http://www.pixellight.org/) 00005 * 00006 * This file is part of PixelLight. 00007 * 00008 * PixelLight is free software: you can redistribute it and/or modify 00009 * it under the terms of the GNU Lesser General Public License as published by 00010 * the Free Software Foundation, either version 3 of the License, or 00011 * (at your option) any later version. 00012 * 00013 * PixelLight is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 * GNU Lesser General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU Lesser General Public License 00019 * along with PixelLight. If not, see <http://www.gnu.org/licenses/>. 00020 \*********************************************************/ 00021 00022 00023 #ifndef __PLINPUT_DEFINITIONS_H__ 00024 #define __PLINPUT_DEFINITIONS_H__ 00025 #pragma once 00026 00027 00028 //[-------------------------------------------------------] 00029 //[ Includes ] 00030 //[-------------------------------------------------------] 00031 #include <PLCore/Base/Rtti.h> 00032 00033 00034 //[-------------------------------------------------------] 00035 //[ Namespace ] 00036 //[-------------------------------------------------------] 00037 namespace PLInput { 00038 00039 00040 //[-------------------------------------------------------] 00041 //[ Controllers ] 00042 //[-------------------------------------------------------] 00043 /** 00044 * @brief 00045 * Controller type 00046 */ 00047 enum EControllerType { 00048 ControllerDevice = 0, /**< Controller is a real input device, no input connections are allowed */ 00049 ControllerVirtual /**< Controller is a virtual controller, input and output connections are allowed */ 00050 }; 00051 00052 // RTTI definition 00053 pl_enum(EControllerType) 00054 pl_enum_value(ControllerDevice, "Real input device, no input connections are allowed") 00055 pl_enum_value(ControllerVirtual, "Virtual controller, input and output connections are allowed") 00056 pl_enum_end 00057 00058 /** 00059 * @brief 00060 * Control type 00061 */ 00062 enum EControlType { 00063 ControlUnknown = 0, /**< Unknown control */ 00064 ControlButton = 1, /**< Button or key */ 00065 ControlAxis, /**< Axis (can be absolute or relative) */ 00066 ControlLED, /**< LED output */ 00067 ControlEffect /**< Effect output */ 00068 }; 00069 00070 // RTTI definition 00071 pl_enum(EControlType) 00072 pl_enum_value(ControlUnknown, "Unknown control") 00073 pl_enum_value(ControlButton, "Button or key") 00074 pl_enum_value(ControlAxis, "Axis") 00075 pl_enum_value(ControlLED, "LED output") 00076 pl_enum_value(ControlEffect, "Effect output") 00077 pl_enum_end 00078 00079 /** 00080 * @brief 00081 * Device backend type 00082 */ 00083 enum EDeviceBackend { 00084 BackendUnknown = 0, /**< Unknown backend */ 00085 BackendUpdateDevice, /**< UpdateDevice backend */ 00086 BackendConnectionDevice, /**< ConnectionDevice backend */ 00087 BackendHID /**< HIDDevice backend (which is also a ConnectionDevice!) */ 00088 }; 00089 00090 00091 //[-------------------------------------------------------] 00092 //[ Namespace ] 00093 //[-------------------------------------------------------] 00094 } // PLInput 00095 00096 00097 #endif // __PLINPUT_DEFINITIONS_H__
|