diff options
author | Joost Peters | 2003-06-01 12:49:39 +0000 |
---|---|---|
committer | Joost Peters | 2003-06-01 12:49:39 +0000 |
commit | 063c310917f981f5075c91097c46963d1fa9a94b (patch) | |
tree | 9e6468ffa4de5d4f26fa2093e188e1ff2e902574 /sky/sky.cpp | |
parent | 5c91b160f68947c77fe73314fc3a740a7c9aa660 (diff) | |
download | scummvm-rg350-063c310917f981f5075c91097c46963d1fa9a94b.tar.gz scummvm-rg350-063c310917f981f5075c91097c46963d1fa9a94b.tar.bz2 scummvm-rg350-063c310917f981f5075c91097c46963d1fa9a94b.zip |
added some buggy, incomplete mouse code
svn-id: r8233
Diffstat (limited to 'sky/sky.cpp')
-rw-r--r-- | sky/sky.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sky/sky.cpp b/sky/sky.cpp index 746dfbd0df..bf6c5e5b93 100644 --- a/sky/sky.cpp +++ b/sky/sky.cpp @@ -113,7 +113,7 @@ SkyState::~SkyState() { delete _skyGrid; delete _skySound; delete _skyMusic; - showQuitMsg(); + showQuitMsg(); delete _skyText; delete _skyMouse; delete _skyScreen; @@ -170,7 +170,7 @@ void SkyState::initialise(void) { } _skyText = new SkyText(_skyDisk, _gameVersion, _language); - _skyMouse = new SkyMouse(_skyDisk); + _skyMouse = new SkyMouse(_system, _skyDisk); _skyScreen = new SkyScreen(_system, _skyDisk); initVirgin(); @@ -269,7 +269,7 @@ void SkyState::delay(uint amount) { //copied and mutilated from Simon.cpp uint32 start = _system->get_msecs(); uint32 cur = start; _key_pressed = 0; //reset - + _mouse_pos_changed = false; _rnd.getRandomNumber(2); do { @@ -287,6 +287,7 @@ void SkyState::delay(uint amount) { //copied and mutilated from Simon.cpp _sdl_mouse_x = event.mouse.x; _sdl_mouse_y = event.mouse.y; _mouse_pos_changed = true; + _system->set_mouse_pos(_sdl_mouse_x, _sdl_mouse_y); break; case OSystem::EVENT_LBUTTONDOWN: |