void AGOSEngine_PuzzlePack::handleMouseMoved() { uint x; if (getGameId() != GID_DIMP && _mouseHideCount) { CursorMan.showMouse(false); return; } CursorMan.showMouse(true); _mouse = _eventMan->getMousePos(); x = 0; if (_lastHitArea3 == 0 && _leftButtonDown) { _verbHitArea = 300; _leftButtonDown = false; x = 1; } if (_rightButtonDown) { _verbHitArea = (getGameId() == GID_DIMP) ? 301 : 300; _rightButtonDown = false; x = 1; } boxController(_mouse.x, _mouse.y, x); _lastHitArea3 = _lastHitArea; if (x == 1 && _lastHitArea == NULL) _lastHitArea3 = (HitArea *) -1; drawMousePointer(); }
void StageSelect::draw() { drawWindow(); drawBackground(); drawDodai(); card_.draw(); post_.draw(); exit_.draw(); drawScrollbar(); for (int i = 0;i < stagelavel_.size(); i++) { stagelavel_[i].draw(); } drawMousePointer(); }
void AGOSEngine::handleMouseMoved() { uint x; if (_mouseHideCount) { CursorMan.showMouse(false); return; } CursorMan.showMouse(true); _mouse = _eventMan->getMousePos(); if (getGameType() == GType_WW) { if (_variableArray[51] != 0 && _mouseCursor != _variableArray[51]) { _mouseCursor = _variableArray[51]; _needHitAreaRecalc++; } } else if (getGameType() == GType_ELVIRA2) { if (_mouseCursor != _variableArray[72]) { _mouseCursor = _variableArray[72]; _needHitAreaRecalc++; } } else if (getGameType() == GType_ELVIRA1) { if (_mouseCursor != _variableArray[438]) { _mouseCursor = _variableArray[438]; _needHitAreaRecalc++; } } if (_leftClick == true) { _leftClick = false; if (_dragMode) { _dragEnd = true; } else { _oneClick = 1; } _dragCount = 0; } if (_mouse != _mouseOld) _needHitAreaRecalc++; if (_leftButtonOld == 0 && _leftButton != 0) { _lastClickRem = 0; boxController(_mouse.x, _mouse.y, 3); } _leftButtonOld = _leftButton; if (_dragMode || _lastHitArea3) { x = 0; if (_needHitAreaRecalc == 0) goto get_out; else goto boxstuff; } if (_leftButton != 0 && _dragAccept && _lastClickRem != NULL) { _dragCount++; if (_dragCount == 20) { _dragMode = true; _dragFlag = true; _needHitAreaRecalc++; } } x = 0; if (_oneClick > 0) { _oneClick = 0; x = 1; } else { if (!_litBoxFlag && _needHitAreaRecalc == 0) goto get_out; } boxstuff: boxController(_mouse.x, _mouse.y, x); _lastHitArea3 = _lastHitArea; get_out: _mouseOld = _mouse; drawMousePointer(); _needHitAreaRecalc = 0; _litBoxFlag = false; }
void AGOSEngine_PN::handleMouseMoved() { if (_mouseHideCount) { CursorMan.showMouse(false); return; } CursorMan.showMouse(true); _mouse = _eventMan->getMousePos(); if (_leftClick == true) { _leftClick = false; if (_dragFlag) { _hitCalled = 4; } else if (_videoLockOut & 0x10) { if (_oneClick != 0) { _hitCalled = 2; _oneClick = 0; } else { _oneClick++; } } else { _hitCalled = 1; } _dragCount = 0; } if (_rightClick == true) { _rightClick = false; if (_hitCalled == 0) _hitCalled = 5; } if (_mouse != _mouseOld) _needHitAreaRecalc++; if (_leftButton != 0) { if (_dragCount <= 20) { _dragCount++; if (_dragCount > 20) { if (_videoLockOut & 0x10) { if (_oneClick == 0) _hitCalled = 3; } else { _hitCalled = 3; } } } } else if ((_videoLockOut & 0x10) && _oneClick != 0) { _oneClick++; if (_oneClick > 10) { _hitCalled = 1; _oneClick = 0; } } if (!_wiped) boxController(_mouse.x, _mouse.y, 0); _mouseOld = _mouse; drawMousePointer(); _needHitAreaRecalc = 0; _litBoxFlag = false; }
void AGOSEngine_Simon1::handleMouseMoved() { uint x; if (_mouseHideCount) { CursorMan.showMouse(false); return; } CursorMan.showMouse(true); _mouse = _eventMan->getMousePos(); if (_defaultVerb) { uint id = 101; if (_mouse.y >= 136) id = 102; if (_defaultVerb != id) resetVerbs(); } if (getGameType() == GType_FF) { if (getBitFlag(99)) { // Oracle if (_mouse.x >= 10 && _mouse.x <= 635 && _mouse.y >= 5 && _mouse.y <= 475) { setBitFlag(98, true); } else { if (getBitFlag(98)) { _variableArray[254] = 63; } } } else if (getBitFlag(88)) { // Close Up if (_mouse.x >= 10 && _mouse.x <= 635 && _mouse.y >= 5 && _mouse.y <= 475) { setBitFlag(87, true); } else { if (getBitFlag(87)) { _variableArray[254] = 75; } } } if (_rightButtonDown) { _rightButtonDown = false; setVerb(NULL); } } else if (getGameType() == GType_SIMON2) { if (getBitFlag(79)) { if (!_vgaVar9) { if (_mouse.x >= 315 || _mouse.x < 9) goto get_out2; _vgaVar9 = 1; } if (_scrollCount == 0) { if (_mouse.x >= 315) { if (_scrollX != _scrollXMax) _scrollFlag = 1; } else if (_mouse.x < 8) { if (_scrollX != 0) _scrollFlag = -1; } } } else { get_out2:; _vgaVar9 = 0; } } if (_mouse != _mouseOld) _needHitAreaRecalc++; if (_leftButtonOld == 0 && _leftButtonCount != 0) { boxController(_mouse.x, _mouse.y, 3); } _leftButtonOld = _leftButton; x = 0; if (_lastHitArea3 == 0 && _leftButtonDown) { _leftButtonDown = false; x = 1; } else { if (!_litBoxFlag && _needHitAreaRecalc == 0) goto get_out; } boxController(_mouse.x, _mouse.y, x); _lastHitArea3 = _lastHitArea; if (x == 1 && _lastHitArea == NULL) _lastHitArea3 = (HitArea *) -1; get_out: _mouseOld = _mouse; drawMousePointer(); _needHitAreaRecalc = 0; _litBoxFlag = false; }