void WebRender::injectMouseDragged(int x, int y){ if(!zoomIn){ int webCoreX=bgX_small+3; int webCoreY=bgY_small+36; awe_webview_inject_mouse_move (webView,(x-webCoreX)*7,(y-webCoreY)*6); } else if(zoomIn){ int webCoreX=bgX_large+20+2; int webCoreY=bgY_large+40-3; awe_webview_inject_mouse_move (webView,(x-webCoreX)*2.38,(y-webCoreY)*2.1); } }
void Menu::OnMouseMotion(MouseEventArgs& args) { if ( InputManager::GetInstance().IsMouseCaptured() ) return; // Check in buffer if the pixel if transparent or not. args.handled |= GetPixelValue(args.x, args.y) != 0; mPosX = args.x; mPosY = args.y; awe_webview_inject_mouse_move( mWebView, mPosX, mPosY ); }
void GameEditor::MouseMoved( int x, int y ) { awe_webview_inject_mouse_move(_uiview->GetWebview(), x, y); }
void Awesomium::injectMouseMove(int x, int y) { awe_webview_focus( webView ); awe_webview_inject_mouse_move(webView, x, y); }