BGE: New Mouse Actuator
authorJorge Bernal <jbernalmartinez@gmail.com>
Wed, 25 Jun 2014 22:47:30 +0000 (15:47 -0700)
committerMitchell Stokes <mogurijin@gmail.com>
Wed, 25 Jun 2014 22:47:37 +0000 (15:47 -0700)
commit7d99a4ded9d3d24c24ea2d5bcc488469cf60fa4a
treef56a5cb74013a4e0520e668570e9fe9f6d1d4a6a
parent11d1fea2850dd4071268034b133c924ce6396df9
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
15 files changed:
doc/python_api/rst/bge.logic.rst
doc/python_api/rst/bge_types/bge.types.KX_MouseActuator.rst [new file with mode: 0644]
source/blender/blenkernel/intern/sca.c
source/blender/blenloader/intern/readfile.c
source/blender/blenloader/intern/writefile.c
source/blender/editors/space_logic/logic_window.c
source/blender/makesdna/DNA_actuator_types.h
source/blender/makesrna/intern/rna_actuator.c
source/gameengine/Converter/KX_ConvertActuators.cpp
source/gameengine/GameLogic/SCA_IActuator.h
source/gameengine/Ketsji/CMakeLists.txt
source/gameengine/Ketsji/KX_MouseActuator.cpp [new file with mode: 0644]
source/gameengine/Ketsji/KX_MouseActuator.h [new file with mode: 0644]
source/gameengine/Ketsji/KX_PythonInit.cpp
source/gameengine/Ketsji/KX_PythonInitTypes.cpp