MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / move_to

Function move_to

Service/InputDeviceXLib.cpp:173–179  ·  view source on GitHub ↗

Move mouse pointer (absolute)

Source from the content-addressed store, hash-verified

171
172// Move mouse pointer (absolute)
173void move_to (Display *display, int x, int y)
174{
175 int cur_x, cur_y;
176 coords (display, &cur_x, &cur_y);
177 XWarpPointer (display, None, None, 0,0,0,0, -cur_x, -cur_y);
178 XWarpPointer (display, None, None, 0,0,0,0, x, y);
179}
180
181// Get pixel color at coordinates x,y
182//void

Callers

nothing calls this directly

Calls 1

coordsFunction · 0.85

Tested by

no test coverage detected