PixelLightAPI  .
SplitTouchPad.h
Go to the documentation of this file.
00001 /*********************************************************\
00002  *  File: SplitTouchPad.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_SPLITTOUCHPAD_H__
00024 #define __PLINPUT_SPLITTOUCHPAD_H__
00025 #pragma once
00026 
00027 
00028 //[-------------------------------------------------------]
00029 //[ Includes                                              ]
00030 //[-------------------------------------------------------]
00031 #include "PLInput/Input/Devices/Device.h"
00032 #include "PLInput/Input/Controls/Axis.h"
00033 #include "PLInput/Input/Controls/Button.h"
00034 
00035 
00036 //[-------------------------------------------------------]
00037 //[ Namespace                                             ]
00038 //[-------------------------------------------------------]
00039 namespace PLInput {
00040 
00041 
00042 //[-------------------------------------------------------]
00043 //[ Classes                                               ]
00044 //[-------------------------------------------------------]
00045 /**
00046 *  @brief
00047 *    Gamepad device emulation by using a touch screen making it possible to e.g. move & look at the same time
00048 *
00049 *  @remarks
00050 *    This class supports the following device backend types:
00051 *    - UpdateDevice
00052 */
00053 class SplitTouchPad : public Device {
00054 
00055 
00056     //[-------------------------------------------------------]
00057     //[ Class definition                                      ]
00058     //[-------------------------------------------------------]
00059     pl_class(PLINPUT_RTTI_EXPORT, SplitTouchPad, "PLInput", PLInput::Device, "Gamepad device emulation by using a touch screen making it possible to e.g. move & look at the same time")
00060     pl_class_end
00061 
00062 
00063     //[-------------------------------------------------------]
00064     //[ Controller definition                                 ]
00065     //[-------------------------------------------------------]
00066     public:
00067         PLInput::Axis   LeftX;  /**< Absolute x axis on the left touchscreen side */
00068         PLInput::Axis   LeftY;  /**< Absolute y axis on the left touchscreen side */
00069         PLInput::Axis   RightX; /**< Absolute x axis on the right touchscreen side */
00070         PLInput::Axis   RightY; /**< Absolute y axis on the right touchscreen side */
00071 
00072 
00073     //[-------------------------------------------------------]
00074     //[ Public functions                                      ]
00075     //[-------------------------------------------------------]
00076     public:
00077         /**
00078         *  @brief
00079         *    Constructor
00080         *
00081         *  @param[in] sName
00082         *    Device name
00083         *  @param[in] pImpl
00084         *    System specific device implementation, can, but shouldn't be a null pointer
00085         */
00086         PLINPUT_API SplitTouchPad(const PLCore::String &sName, DeviceImpl *pImpl);
00087 
00088         /**
00089         *  @brief
00090         *    Destructor
00091         */
00092         PLINPUT_API virtual ~SplitTouchPad();
00093 
00094 
00095     //[-------------------------------------------------------]
00096     //[ Public virtual Controller functions                   ]
00097     //[-------------------------------------------------------]
00098     public:
00099         PLINPUT_API virtual void Update() override;
00100 
00101 
00102 };
00103 
00104 
00105 //[-------------------------------------------------------]
00106 //[ Namespace                                             ]
00107 //[-------------------------------------------------------]
00108 } // PLInput
00109 
00110 
00111 #endif // __PLINPUT_SPLITTOUCHPAD_H__


PixelLight PixelLight 0.9.11-R1
Copyright (C) 2002-2012 by The PixelLight Team
Last modified Thu Feb 23 2012 14:09:00
The content of this PixelLight document is published under the
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported