MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / getMouse

Method getMouse

src/platform/XWindow.cpp:421–431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

419}
420
421void XWindow::getMouse(int& x, int& y) const {
422 Window rootWindow, childWindow;
423 int rootX, rootY;
424 unsigned int mask;
425 int mx, my;
426 XQueryPointer(display->getDisplay(), window,
427 &rootWindow, &childWindow,
428 &rootX, &rootY, &mx, &my, &mask);
429 x = mx;
430 y = my;
431}
432
433void XWindow::grabMouse() {
434 XGrabPointer(display->getDisplay(), window,

Callers 5

handleEventFunction · 0.45
drawFakeCursorFunction · 0.45
renderRoamMouseFunction · 0.45
getMousePositionMethod · 0.45
GetMousePositionMethod · 0.45

Calls 1

getDisplayMethod · 0.45

Tested by

no test coverage detected