diff options
author | Kester Maddock <Christopher.Maddock.1@uni.massey.ac.nz> | 2004-05-03 03:45:03 +0400 |
---|---|---|
committer | Kester Maddock <Christopher.Maddock.1@uni.massey.ac.nz> | 2004-05-03 03:45:03 +0400 |
commit | 08c14c7ca0398d792e3a2676b1afd66666674dae (patch) | |
tree | ca57b8c1d929031f4290da7d94a14ec502001918 /source/gameengine/GamePlayer/common/GPC_MouseDevice.cpp | |
parent | 45a240260e5545a2fe04121f76cb7c10982cf123 (diff) |
Mouse Wheel Support for the Game Engine.
This adds "Wheel Up" and "Wheel Down" as choices to the Mouse sensor brick.
Diffstat (limited to 'source/gameengine/GamePlayer/common/GPC_MouseDevice.cpp')
-rw-r--r-- | source/gameengine/GamePlayer/common/GPC_MouseDevice.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/gameengine/GamePlayer/common/GPC_MouseDevice.cpp b/source/gameengine/GamePlayer/common/GPC_MouseDevice.cpp index bfd1acaf65d..7e57aa1ee40 100644 --- a/source/gameengine/GamePlayer/common/GPC_MouseDevice.cpp +++ b/source/gameengine/GamePlayer/common/GPC_MouseDevice.cpp @@ -107,6 +107,12 @@ bool GPC_MouseDevice::ConvertButtonEvent(TButtonId button, bool isDown) case buttonRight: result = ConvertEvent(KX_RIGHTMOUSE, isDown); break; + case buttonWheelUp: + result = ConvertEvent(KX_WHEELUPMOUSE, isDown); + break; + case buttonWheelDown: + result = ConvertEvent(KX_WHEELDOWNMOUSE, isDown); + break; default: // Should not happen! break; |