summaryrefslogtreecommitdiffstats
path: root/src/object/brain.cpp
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2012-09-19 21:23:42 +0200
committerPiotr Dziwinski <piotrdz@gmail.com>2012-09-19 21:23:42 +0200
commit10c9d92cd2581448d76548efb20957a7a1c24478 (patch)
tree5f039656bc78cd2a882b872548c340de8ea5263c /src/object/brain.cpp
parent51884cef8e015bccbe1fa96dc56dc2f32439ccc5 (diff)
downloadcolobot-10c9d92cd2581448d76548efb20957a7a1c24478.tar.gz
colobot-10c9d92cd2581448d76548efb20957a7a1c24478.tar.bz2
colobot-10c9d92cd2581448d76548efb20957a7a1c24478.zip
Mouse wheel events, motion vectors
- added mouse wheel events - added motion vectors to CRobotMain - other minor changes in event.h
Diffstat (limited to 'src/object/brain.cpp')
-rw-r--r--src/object/brain.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/object/brain.cpp b/src/object/brain.cpp
index c395c6a..953f878 100644
--- a/src/object/brain.cpp
+++ b/src/object/brain.cpp
@@ -361,9 +361,9 @@ bool CBrain::EventProcess(const Event &event)
m_buttonAxe = EVENT_NULL;
}
- axeX = event.axeX;
- axeY = event.axeY;
- axeZ = event.axeZ;
+ axeX = event.motionInput.x;
+ axeY = event.motionInput.y;
+ axeZ = event.motionInput.z;
if ( !m_main->GetTrainerPilot() &&
m_object->GetTrainer() ) // drive vehicle?