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/BlenderRoutines/KX_BlenderInputDevice.h | |
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/BlenderRoutines/KX_BlenderInputDevice.h')
-rw-r--r-- | source/gameengine/BlenderRoutines/KX_BlenderInputDevice.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/source/gameengine/BlenderRoutines/KX_BlenderInputDevice.h b/source/gameengine/BlenderRoutines/KX_BlenderInputDevice.h index 02bae96d840..ed4eb65a769 100644 --- a/source/gameengine/BlenderRoutines/KX_BlenderInputDevice.h +++ b/source/gameengine/BlenderRoutines/KX_BlenderInputDevice.h @@ -59,11 +59,13 @@ public: /* The reverse table. In order to not confuse ourselves, we */ /* immediately convert all events that come in to KX codes. */ - m_reverseKeyTranslateTable[LEFTMOUSE ] = KX_LEFTMOUSE ; - m_reverseKeyTranslateTable[MIDDLEMOUSE ] = KX_MIDDLEMOUSE ; - m_reverseKeyTranslateTable[RIGHTMOUSE ] = KX_RIGHTMOUSE ; - m_reverseKeyTranslateTable[MOUSEX ] = KX_MOUSEX ; - m_reverseKeyTranslateTable[MOUSEY ] = KX_MOUSEY ; + m_reverseKeyTranslateTable[LEFTMOUSE ] = KX_LEFTMOUSE ; + m_reverseKeyTranslateTable[MIDDLEMOUSE ] = KX_MIDDLEMOUSE ; + m_reverseKeyTranslateTable[RIGHTMOUSE ] = KX_RIGHTMOUSE ; + m_reverseKeyTranslateTable[WHEELUPMOUSE ] = KX_WHEELUPMOUSE ; + m_reverseKeyTranslateTable[WHEELDOWNMOUSE ] = KX_WHEELDOWNMOUSE ; + m_reverseKeyTranslateTable[MOUSEX ] = KX_MOUSEX ; + m_reverseKeyTranslateTable[MOUSEY ] = KX_MOUSEY ; // TIMERS |