mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-01 23:18:44 +00:00
DREAMWEB: report click only once, this fixes phantom clicks after loading or between screens.
This commit is contained in:
parent
d69e437d42
commit
93cf9993ea
@ -67,6 +67,7 @@ DreamWebEngine::DreamWebEngine(OSystem *syst, const DreamWebGameDescription *gam
|
|||||||
_outSaveFile = 0;
|
_outSaveFile = 0;
|
||||||
_inSaveFile = 0;
|
_inSaveFile = 0;
|
||||||
_speed = 1;
|
_speed = 1;
|
||||||
|
_oldMouseState = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
DreamWebEngine::~DreamWebEngine() {
|
DreamWebEngine::~DreamWebEngine() {
|
||||||
@ -270,7 +271,10 @@ void DreamWebEngine::mouseCall() {
|
|||||||
pos.y = 184;
|
pos.y = 184;
|
||||||
_context.cx = pos.x;
|
_context.cx = pos.x;
|
||||||
_context.dx = pos.y;
|
_context.dx = pos.y;
|
||||||
_context.bx = eventMan->getButtonState();
|
|
||||||
|
unsigned state = eventMan->getButtonState();
|
||||||
|
_context.bx = state == _oldMouseState? 0: state;
|
||||||
|
_oldMouseState = state;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DreamWebEngine::setGraphicsMode() {
|
void DreamWebEngine::setGraphicsMode() {
|
||||||
|
@ -114,6 +114,7 @@ private:
|
|||||||
Common::InSaveFile *_inSaveFile;
|
Common::InSaveFile *_inSaveFile;
|
||||||
|
|
||||||
uint _speed;
|
uint _speed;
|
||||||
|
uint _oldMouseState;
|
||||||
|
|
||||||
dreamgen::Context _context;
|
dreamgen::Context _context;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user