PixelLightAPI  .
OrbitingController.h
Go to the documentation of this file.
00001 /*********************************************************\
00002  *  File: OrbitingController.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_ORBITINGCONTROLLER_H__
00024 #define __PLENGINE_CONTROLLER_ORBITINGCONTROLLER_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 *    Orbiting input controller
00049 *
00050 *  @note
00051 *    - Primary intended for rapid prototyping
00052 */
00053 class OrbitingController : public PLInput::Controller {
00054 
00055 
00056     //[-------------------------------------------------------]
00057     //[ Class definition                                      ]
00058     //[-------------------------------------------------------]
00059     pl_class(PL_RTTI_EXPORT, OrbitingController, "PLEngine", PLInput::Controller, "Orbiting 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::Axis   PanX;       /**< X pan translation axis: Strafe left/right (+/-) */
00071         PLInput::Axis   PanY;       /**< Y pan translation axis: Move up/down (+/-) */
00072         PLInput::Axis   PanZ;       /**< Z pan translation axis: Move forwards/backwards (+/-) */
00073         PLInput::Button Rotate;     /**< Keep pressed to rotate */
00074         PLInput::Button Pan;        /**< Keep pressed to pan */
00075         PLInput::Button Zoom;       /**< Keep pressed to zoom */
00076         PLInput::Axis   ZoomAxis;   /**< Zoom axis to zoom in or out (+/-) */
00077         PLInput::Button Run;        /**< Keep pressed to run */
00078         PLInput::Button Crouch;     /**< Keep pressed to crouch */
00079 
00080 
00081     //[-------------------------------------------------------]
00082     //[ Public functions                                      ]
00083     //[-------------------------------------------------------]
00084     public:
00085         /**
00086         *  @brief
00087         *    Constructor
00088         */
00089         PL_API OrbitingController();
00090 
00091         /**
00092         *  @brief
00093         *    Destructor
00094         */
00095         PL_API virtual ~OrbitingController();
00096 
00097 
00098 };
00099 
00100 
00101 //[-------------------------------------------------------]
00102 //[ Namespace                                             ]
00103 //[-------------------------------------------------------]
00104 } // PLEngine
00105 
00106 
00107 #endif // __PLENGINE_CONTROLLER_ORBITINGCONTROLLER_H__


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