| 3041 | } |
| 3042 | |
| 3043 | void MainWindow::setupMouseMoveHandler() |
| 3044 | { |
| 3045 | auto mouse_cb_fn = [](int x, int y) { |
| 3046 | if (g_main_window) |
| 3047 | g_main_window->checkMousePosition(x, y); |
| 3048 | }; |
| 3049 | |
| 3050 | if (!Common::AttachMousePositionCb(mouse_cb_fn)) |
| 3051 | { |
| 3052 | Console.Warning("Unable to setup mouse position cb!"); |
| 3053 | } |
| 3054 | |
| 3055 | return; |
| 3056 | } |
| 3057 | |
| 3058 | void MainWindow::checkMousePosition(int x, int y) |
| 3059 | { |
nothing calls this directly
no test coverage detected