diff options
author | Denis Kasak | 2009-06-24 23:58:30 +0000 |
---|---|---|
committer | Denis Kasak | 2009-06-24 23:58:30 +0000 |
commit | c87f05b14cae5253ff5635e4d23638aff3a1b3b5 (patch) | |
tree | 87b38064ab40f1c59155058cd6e8d9df973e6593 /engines/draci/draci.cpp | |
parent | 36fd17d499f6357a1b28d6271e87b07557685471 (diff) | |
download | scummvm-rg350-c87f05b14cae5253ff5635e4d23638aff3a1b3b5.tar.gz scummvm-rg350-c87f05b14cae5253ff5635e4d23638aff3a1b3b5.tar.bz2 scummvm-rg350-c87f05b14cae5253ff5635e4d23638aff3a1b3b5.zip |
Started work on the Mouse class.
svn-id: r41840
Diffstat (limited to 'engines/draci/draci.cpp')
-rw-r--r-- | engines/draci/draci.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/draci/draci.cpp b/engines/draci/draci.cpp index c53700b4f6..8c92f97340 100644 --- a/engines/draci/draci.cpp +++ b/engines/draci/draci.cpp @@ -38,6 +38,7 @@ #include "draci/font.h" #include "draci/sprite.h" #include "draci/screen.h" +#include "draci/mouse.h" namespace Draci { @@ -65,6 +66,7 @@ int DraciEngine::init() { // Initialize graphics using following: initGraphics(kScreenWidth, kScreenHeight, false); + _mouse = new Mouse(this); _screen = new Screen(this); _font = new Font(); @@ -208,10 +210,8 @@ int DraciEngine::go() { switch (event.type) { case Common::EVENT_QUIT: quit = true; - case Common::EVENT_MOUSEMOVE: - _system->warpMouse(event.mouse.x, event.mouse.y); default: - break; + _mouse->handleEvent(event); } } _screen->copyToScreen(); |