MCPcopy Create free account
hub / github.com/deskflow/deskflow / fakeMouseButton

Method fakeMouseButton

src/lib/platform/XWindowsScreen.cpp:761–768  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

759}
760
761void XWindowsScreen::fakeMouseButton(ButtonID button, bool press)
762{
763 const unsigned int xButton = mapButtonToX(button);
764 if (xButton > 0 && xButton < 11) {
765 XTestFakeButtonEvent(m_display, xButton, press ? True : False, CurrentTime);
766 XFlush(m_display);
767 }
768}
769
770void XWindowsScreen::fakeMouseMove(int32_t x, int32_t y)
771{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected