aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ClientHamr/extantz/extantzCamera.cpp
diff options
context:
space:
mode:
authorDavid Walter Seikel2013-02-02 14:10:42 +1000
committerDavid Walter Seikel2013-02-02 14:10:42 +1000
commit8635bbc76a83c026d244ee5efc72b4ecd62a584e (patch)
tree69a69e5c0c0b34fcda10fdc2f28b45e4ec74aa82 /ClientHamr/extantz/extantzCamera.cpp
parentFix up those arrow keys by getting elm out of the loop. (diff)
downloadSledjHamr-8635bbc76a83c026d244ee5efc72b4ecd62a584e.zip
SledjHamr-8635bbc76a83c026d244ee5efc72b4ecd62a584e.tar.gz
SledjHamr-8635bbc76a83c026d244ee5efc72b4ecd62a584e.tar.bz2
SledjHamr-8635bbc76a83c026d244ee5efc72b4ecd62a584e.tar.xz
A few minor clean ups.
Diffstat (limited to 'ClientHamr/extantz/extantzCamera.cpp')
-rw-r--r--ClientHamr/extantz/extantzCamera.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/ClientHamr/extantz/extantzCamera.cpp b/ClientHamr/extantz/extantzCamera.cpp
index 8337f8c..4d4be02 100644
--- a/ClientHamr/extantz/extantzCamera.cpp
+++ b/ClientHamr/extantz/extantzCamera.cpp
@@ -26,7 +26,7 @@ namespace scene
26{ 26{
27 27
28// Irrlicht hard codes a reference to the original FPS camera code inside it's scene manager. This is that code extracted so we can be more flexible. 28// Irrlicht hard codes a reference to the original FPS camera code inside it's scene manager. This is that code extracted so we can be more flexible.
29// TODO - Hmmm, Where's CursorControl come from? Ah, passed to the scene manager constructor, it's a GUI thing that we need to replace with an EFL thing. 29// TODO - Hmmm, Where's CursorControl come from? Ah, passed to the scene manager constructor, it's a GUI thing that we need to replace with an EFL thing. But only for mouselook mode.
30ICameraSceneNode *addExtantzCamera(ISceneManager* sm, ISceneNode* parent, s32 id) 30ICameraSceneNode *addExtantzCamera(ISceneManager* sm, ISceneNode* parent, s32 id)
31{ 31{
32 ICameraSceneNode* node = sm->addCameraSceneNode(parent, core::vector3df(), core::vector3df(0, 0, 100), id, true); 32 ICameraSceneNode* node = sm->addCameraSceneNode(parent, core::vector3df(), core::vector3df(0, 0, 100), id, true);
@@ -81,6 +81,8 @@ extantzCamera::~extantzCamera()
81 * Which would even work in fly mode. 81 * Which would even work in fly mode.
82 * A joystick could be set to range over -2.0 to 2.0, and just set it's part directly. 82 * A joystick could be set to range over -2.0 to 2.0, and just set it's part directly.
83 * A mouse look rotate, well will come to that when we need to. B-) 83 * A mouse look rotate, well will come to that when we need to. B-)
84 * I think setting the x or y to be the window position of the mouse (-1.0 to 1.0) should do it.
85 * Or not. meh
84 */ 86 */
85 87
86void extantzCamera::animateNode(ISceneNode* node, u32 timeMs) 88void extantzCamera::animateNode(ISceneNode* node, u32 timeMs)