PixelLightAPI  .
LookController.h
Go to the documentation of this file.
00001 /*********************************************************\
00002  *  File: LookController.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 __PLENGINE_CONTROLLER_LOOKCONTROLLER_H__
00024 #define __PLENGINE_CONTROLLER_LOOKCONTROLLER_H__
00025 #pragma once
00026 
00027 
00028 //[-------------------------------------------------------]
00029 //[ Includes                                              ]
00030 //[-------------------------------------------------------]
00031 #include <PLInput/Input/Controller.h>
00032 #include <PLInput/Input/Controls/Axis.h>
00033 #include <PLInput/Input/Controls/Button.h>
00034 #include "PLEngine/PLEngine.h"
00035 
00036 
00037 //[-------------------------------------------------------]
00038 //[ Namespace                                             ]
00039 //[-------------------------------------------------------]
00040 namespace PLEngine {
00041 
00042 
00043 //[-------------------------------------------------------]
00044 //[ Classes                                               ]
00045 //[-------------------------------------------------------]
00046 /**
00047 *  @brief
00048 *    Look input controller
00049 *
00050 *  @note
00051 *    - Primary intended for rapid prototyping
00052 */
00053 class LookController : public PLInput::Controller {
00054 
00055 
00056     //[-------------------------------------------------------]
00057     //[ Class definition                                      ]
00058     //[-------------------------------------------------------]
00059     pl_class(PL_RTTI_EXPORT, LookController, "PLEngine", PLInput::Controller, "Look input controller")
00060     pl_class_end
00061 
00062 
00063     //[-------------------------------------------------------]
00064     //[ Controller definition                                 ]
00065     //[-------------------------------------------------------]
00066     public:
00067         PLInput::Axis   RotX;   /**< X rotation axis: Pitch (also called 'bank') change is moving the nose down and the tail up (or vice-versa) */
00068         PLInput::Axis   RotY;   /**< Y rotation axis: Yaw (also called 'heading') change is turning to the left or right */
00069         PLInput::Axis   RotZ;   /**< Z rotation axis: Roll (also called 'attitude') change is moving one wingtip up and the other down */
00070         PLInput::Button Rotate; /**< Keep pressed to rotate (optional) */
00071 
00072 
00073     //[-------------------------------------------------------]
00074     //[ Public functions                                      ]
00075     //[-------------------------------------------------------]
00076     public:
00077         /**
00078         *  @brief
00079         *    Constructor
00080         */
00081         PL_API LookController();
00082 
00083         /**
00084         *  @brief
00085         *    Destructor
00086         */
00087         PL_API virtual ~LookController();
00088 
00089 
00090 };
00091 
00092 
00093 //[-------------------------------------------------------]
00094 //[ Namespace                                             ]
00095 //[-------------------------------------------------------]
00096 } // PLEngine
00097 
00098 
00099 #endif // __PLENGINE_CONTROLLER_LOOKCONTROLLER_H__


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