MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / setupMouseMoveHandler

Method setupMouseMoveHandler

pcsx2-qt/MainWindow.cpp:3043–3056  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3041}
3042
3043void 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
3058void MainWindow::checkMousePosition(int x, int y)
3059{

Callers

nothing calls this directly

Calls 2

checkMousePositionMethod · 0.80
WarningMethod · 0.45

Tested by

no test coverage detected