diff options
| author | Einar Johan Trøan Sømåen | 2012-06-15 18:55:46 +0200 |
|---|---|---|
| committer | Einar Johan Trøan Sømåen | 2012-06-15 18:55:46 +0200 |
| commit | 4c1909db9a2b7e17a338eba6d144d530a59190f1 (patch) | |
| tree | 35b9b06687858f5879474f56e8f9f0feb05812b0 /engines/wintermute | |
| parent | bd31b5f20144169c830211db29eac8d4789f1428 (diff) | |
| download | scummvm-rg350-4c1909db9a2b7e17a338eba6d144d530a59190f1.tar.gz scummvm-rg350-4c1909db9a2b7e17a338eba6d144d530a59190f1.tar.bz2 scummvm-rg350-4c1909db9a2b7e17a338eba6d144d530a59190f1.zip | |
WINTERMUTE: Add untested mouse-wheel-handling.
Diffstat (limited to 'engines/wintermute')
| -rw-r--r-- | engines/wintermute/PlatformSDL.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/wintermute/PlatformSDL.cpp b/engines/wintermute/PlatformSDL.cpp index e27cbb291f..a0ba4f4a05 100644 --- a/engines/wintermute/PlatformSDL.cpp +++ b/engines/wintermute/PlatformSDL.cpp @@ -81,6 +81,10 @@ void CBPlatform::HandleEvent(Common::Event *event) { case Common::EVENT_KEYUP:
if (Game) Game->handleKeyRelease(event);
break;
+ case Common::EVENT_WHEELUP:
+ case Common::EVENT_WHEELDOWN:
+ if (Game) Game->HandleMouseWheel(event->mouse.y);
+ break;
/*#ifdef __IPHONEOS__
{
CBRenderSDL *renderer = static_cast<CBRenderSDL *>(Game->_renderer);
|
