blender/source/gameengine/GameLogic
Jorge Bernal 7d99a4ded9 BGE: New Mouse Actuator
Disclaimer: The author of this patch is Geoffrey Gollmer (gomer). I only updated the patch to the current git master status, reworked several parts to fit well with current coding style and applied several fixes.

This actuator allows users to show/hide the mouse cursor using logic bricks, as well as control object rotation with a mouse in the BGE.
The mouse rotation is flexible enough to allow any type of mouse look, as well as banking for flight controls.

{F94520}

{F91859}

Blend file for testing Mouse actuator (with default parameters and crosshair): {F94920}

Reviewers: moguri

Reviewed By: moguri

CC: gomer, lordodin

Differential Revision: https://developer.blender.org/D559
2014-06-25 15:47:37 -07:00
..
Joystick Code Cleanup: whitespace / formatting 2013-11-24 15:23:38 +11:00
CMakeLists.txt clang/cmake - quiet warnings for external libs and reference moto as a system include. 2013-07-15 08:26:16 +00:00
SCA_2DFilterActuator.cpp BGE: Fixing a crash that occurred when LibLoading a scene with a 2D Filter Actuator. The actuator was still referencing the old scene. 2012-12-31 21:32:46 +00:00
SCA_2DFilterActuator.h BGE: Fixing a crash that occurred when LibLoading a scene with a 2D Filter Actuator. The actuator was still referencing the old scene. 2012-12-31 21:32:46 +00:00
SCA_ActuatorEventManager.cpp remove $Id: tags after discussion on the mailign list: http://markmail.org/message/fp7ozcywxum3ar7n 2011-10-23 17:52:20 +00:00
SCA_ActuatorEventManager.h code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00
SCA_ActuatorSensor.cpp use defines for property name lenghths in the BGE, were using 31,32,64,100. 2012-01-16 05:27:11 +00:00
SCA_ActuatorSensor.h code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00
SCA_AlwaysEventManager.cpp remove $Id: tags after discussion on the mailign list: http://markmail.org/message/fp7ozcywxum3ar7n 2011-10-23 17:52:20 +00:00
SCA_AlwaysEventManager.h code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00
SCA_AlwaysSensor.cpp code cleanup: check for msvc directly when using warning pragma's. 2012-10-15 02:15:07 +00:00
SCA_AlwaysSensor.h code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00
SCA_ANDController.cpp remove $Id: tags after discussion on the mailign list: http://markmail.org/message/fp7ozcywxum3ar7n 2011-10-23 17:52:20 +00:00
SCA_ANDController.h code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00
SCA_BasicEventManager.cpp remove $Id: tags after discussion on the mailign list: http://markmail.org/message/fp7ozcywxum3ar7n 2011-10-23 17:52:20 +00:00
SCA_BasicEventManager.h code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00
SCA_DelaySensor.cpp code cleanup: check for msvc directly when using warning pragma's. 2012-10-15 02:15:07 +00:00
SCA_DelaySensor.h code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00
SCA_EventManager.cpp remove $Id: tags after discussion on the mailign list: http://markmail.org/message/fp7ozcywxum3ar7n 2011-10-23 17:52:20 +00:00
SCA_EventManager.h BGE cleanup: Removing the unused SCA_EventManager::Replace_PhysicsScene(). 2014-05-01 19:43:07 -07:00
SCA_ExpressionController.cpp fix for possible leak in the expression controller find identifier. 2013-11-02 05:18:31 +00:00
SCA_ExpressionController.h code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00
SCA_IActuator.cpp remove $Id: tags after discussion on the mailign list: http://markmail.org/message/fp7ozcywxum3ar7n 2011-10-23 17:52:20 +00:00
SCA_IActuator.h BGE: New Mouse Actuator 2014-06-25 15:47:37 -07:00
SCA_IController.cpp py api cleanup, replace use... 2012-11-21 02:28:36 +00:00
SCA_IController.h code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00
SCA_IInputDevice.cpp style cleanup 2012-09-16 04:58:18 +00:00
SCA_IInputDevice.h Fix T38110: GameEngine keyboard sensor ignores unicode characters 2014-01-23 14:58:04 +11:00
SCA_ILogicBrick.cpp py api cleanup, replace use... 2012-11-21 02:28:36 +00:00
SCA_ILogicBrick.h code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00
SCA_IObject.cpp style cleanup 2012-09-16 04:58:18 +00:00
SCA_IObject.h style cleanup 2013-02-04 00:05:15 +00:00
SCA_IScene.cpp style cleanup: indent/whitespace 2013-08-19 01:48:44 +00:00
SCA_IScene.h BGE: Committing patch #32422 "Debug properties for added objects" by HG1. 2013-07-09 20:06:36 +00:00
SCA_ISensor.cpp py api cleanup, replace use... 2012-11-21 02:28:36 +00:00
SCA_ISensor.h code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00
SCA_JoystickManager.cpp BGE: Adding a Python interface for handling joysticks without needing logic bricks. These new SCA_PythonJoystick objects can be accessed using bge.logic.joysticks, which is a list of joysticks. The length of the list is the number of maximum supported joysticks, and indexes that do not have a joystick available are set to None. This means joysticks can be checked for using something like: 2012-12-21 02:28:59 +00:00
SCA_JoystickManager.h optionally use guarded alloc for tiles compositor, also replace allocation functions with a macro. 2012-06-25 09:14:37 +00:00
SCA_JoystickSensor.cpp Changing the python error when accessing SCA_JoystickSensor.axisSingle in the wrong mode to an AttributeError instead of a TypeError as this more accurately reflects the problem. 2013-07-20 03:15:57 +00:00
SCA_JoystickSensor.h code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00
SCA_KeyboardManager.cpp style cleanup: pep8, indentation 2012-03-24 07:36:32 +00:00
SCA_KeyboardManager.h code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00
SCA_KeyboardSensor.cpp Fix T38110: GameEngine keyboard sensor ignores unicode characters 2014-01-23 14:58:04 +11:00
SCA_KeyboardSensor.h Fix T38110: GameEngine keyboard sensor ignores unicode characters 2014-01-23 14:58:04 +11:00
SCA_LogicManager.cpp code cleanup: 2013-03-25 02:41:30 +00:00
SCA_LogicManager.h style cleanup: comment format 2013-02-02 04:48:21 +00:00
SCA_MouseManager.cpp code cleanup: check for msvc directly when using warning pragma's. 2012-10-15 02:15:07 +00:00
SCA_MouseManager.h code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00
SCA_MouseSensor.cpp py api cleanup, replace use... 2012-11-21 02:28:36 +00:00
SCA_MouseSensor.h code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00
SCA_NANDController.cpp remove $Id: tags after discussion on the mailign list: http://markmail.org/message/fp7ozcywxum3ar7n 2011-10-23 17:52:20 +00:00
SCA_NANDController.h code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00
SCA_NORController.cpp remove $Id: tags after discussion on the mailign list: http://markmail.org/message/fp7ozcywxum3ar7n 2011-10-23 17:52:20 +00:00
SCA_NORController.h code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00
SCA_ORController.cpp remove $Id: tags after discussion on the mailign list: http://markmail.org/message/fp7ozcywxum3ar7n 2011-10-23 17:52:20 +00:00
SCA_ORController.h code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00
SCA_PropertyActuator.cpp style cleanup 2012-09-16 04:58:18 +00:00
SCA_PropertyActuator.h code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00
SCA_PropertyEventManager.cpp remove $Id: tags after discussion on the mailign list: http://markmail.org/message/fp7ozcywxum3ar7n 2011-10-23 17:52:20 +00:00
SCA_PropertyEventManager.h code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00
SCA_PropertySensor.cpp BGE: New Property sensor evaluation types 2014-06-16 14:56:36 -07:00
SCA_PropertySensor.h BGE: New Property sensor evaluation types 2014-06-16 14:56:36 -07:00
SCA_PythonController.cpp code cleanup: add 'const' to headers to quiet msvc warnings, also remove (char *) casts that aren't needed now we're on Python3.3 2013-03-17 18:30:31 +00:00
SCA_PythonController.h py api cleanup, replace use... 2012-11-21 02:28:36 +00:00
SCA_PythonJoystick.cpp BGE: Fix for [#33839] "a logic.joysticks Crashes BGE" reported by Josiah Lane (solarlune). 2013-01-12 05:44:08 +00:00
SCA_PythonJoystick.h BGE: Adding a Python interface for handling joysticks without needing logic bricks. These new SCA_PythonJoystick objects can be accessed using bge.logic.joysticks, which is a list of joysticks. The length of the list is the number of maximum supported joysticks, and indexes that do not have a joystick available are set to None. This means joysticks can be checked for using something like: 2012-12-21 02:28:59 +00:00
SCA_PythonKeyboard.cpp py api cleanup, replace use... 2012-11-21 02:28:36 +00:00
SCA_PythonKeyboard.h code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00
SCA_PythonMouse.cpp py api cleanup, replace use... 2012-11-21 02:28:36 +00:00
SCA_PythonMouse.h code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00
SCA_RandomActuator.cpp style cleanup: comment format 2013-02-02 04:48:21 +00:00
SCA_RandomActuator.h code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00
SCA_RandomEventManager.cpp remove $Id: tags after discussion on the mailign list: http://markmail.org/message/fp7ozcywxum3ar7n 2011-10-23 17:52:20 +00:00
SCA_RandomEventManager.h code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00
SCA_RandomNumberGenerator.cpp style cleanup, use { on newline after function definition. 2012-02-25 16:49:59 +00:00
SCA_RandomNumberGenerator.h optionally use guarded alloc for tiles compositor, also replace allocation functions with a macro. 2012-06-25 09:14:37 +00:00
SCA_RandomSensor.cpp py api cleanup, replace use... 2012-11-21 02:28:36 +00:00
SCA_RandomSensor.h code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00
SCA_TimeEventManager.cpp code cleanup: check for msvc directly when using warning pragma's. 2012-10-15 02:15:07 +00:00
SCA_TimeEventManager.h code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00
SCA_XNORController.cpp remove $Id: tags after discussion on the mailign list: http://markmail.org/message/fp7ozcywxum3ar7n 2011-10-23 17:52:20 +00:00
SCA_XNORController.h code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00
SCA_XORController.cpp remove $Id: tags after discussion on the mailign list: http://markmail.org/message/fp7ozcywxum3ar7n 2011-10-23 17:52:20 +00:00
SCA_XORController.h code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00
SConscript split bge includes for scons onto their own lines (for easier merging) 2013-05-29 21:56:55 +00:00