PixelLightAPI  .
PhysicsMouseInteraction.h
Go to the documentation of this file.
00001 /*********************************************************\
00002  *  File: PhysicsMouseInteraction.h                      *
00003  *
00004  *  Copyright (C) 2002-2011 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_PHYSICSMOUSEINTERACTION_H__
00024 #define __PLENGINE_CONTROLLER_PHYSICSMOUSEINTERACTION_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 *    Mouse physics interaction input controller
00049 *
00050 *  @note
00051 *    - Primary intended for rapid prototyping
00052 */
00053 class PhysicsMouseInteraction : public PLInput::Controller {
00054 
00055 
00056     //[-------------------------------------------------------]
00057     //[ Class definition                                      ]
00058     //[-------------------------------------------------------]
00059     pl_class(PL_RTTI_EXPORT, PhysicsMouseInteraction, "PLEngine", PLInput::Controller, "Mouse physics interaction input controller")
00060     pl_class_end
00061 
00062 
00063     //[-------------------------------------------------------]
00064     //[ Controller definition                                 ]
00065     //[-------------------------------------------------------]
00066     public:
00067         PLInput::Button Pickup;         /**< Keep pressed to pickup */
00068         PLInput::Button Throw;          /**< Throw the picked object */
00069         PLInput::Button IncreaseForce;  /**< Keep pressed to increase the force applied to the picked object */
00070         PLInput::Button DecreaseForce;  /**< Keep pressed to decrease the force applied to the picked object */
00071         PLInput::Axis   PushPull;       /**< Used to push/pull the picked object */
00072         PLInput::Axis   MouseX;         /**< X-position of the mouse */
00073         PLInput::Axis   MouseY;         /**< Y-position of the mouse */
00074 
00075 
00076     //[-------------------------------------------------------]
00077     //[ Public functions                                      ]
00078     //[-------------------------------------------------------]
00079     public:
00080         /**
00081         *  @brief
00082         *    Constructor
00083         */
00084         PL_API PhysicsMouseInteraction();
00085 
00086         /**
00087         *  @brief
00088         *    Destructor
00089         */
00090         PL_API virtual ~PhysicsMouseInteraction();
00091 
00092 
00093 };
00094 
00095 
00096 //[-------------------------------------------------------]
00097 //[ Namespace                                             ]
00098 //[-------------------------------------------------------]
00099 } // PLEngine
00100 
00101 
00102 #endif // __PLENGINE_CONTROLLER_PHYSICSMOUSEINTERACTION_H__


PixelLight PixelLight 0.9.10-R1
Copyright (C) 2002-2011 by The PixelLight Team
Last modified Fri Dec 23 2011 15:50:59
The content of this PixelLight document is published under the
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported