void CApp::OnMouseMove(int mX, int mY, int relX, int relY, bool Left,bool Right,bool Middle) { #ifndef ANDROID if(!Left) { return; } #endif Mouse.setX(mX+Camera::CameraControl.getTarget().getX()-WWIDTH/2); Mouse.setY(mY+Camera::CameraControl.getTarget().getY()-WHEIGHT/2); //Mouse.setX(mX+_center->getX()-WWIDTH/2); //Mouse.setY(mY+_center->getY()-WHEIGHT/2); _hasGotMouseEventThisLoop = true; triggerSwitchesOnTouch(); checkTranslation(); }
long MessageHandler::checkMessageTranslation(long messageid, const MessageTranslation &mt) { long translationid = -1; long audioid = -1; translationid = checkTranslation(messageid, mt); if(translationid < 0) translationid = insertTranslation(messageid, mt); if(translationid > 0) audioid = checkMessageAudio(translationid, mt); if(audioid >= 0) return translationid; else return -1; }
void PresentWidget::sendToTranslation(){ emit checkTranslation(tW.userTranslate->text()); setVisible(false); emit sendTimer(tW.timer->text()); }