MCPcopy Create free account
hub / github.com/Zalafina/QKeyMapper / postMouseMoveToPoint

Method postMouseMoveToPoint

QKeyMapper/qkeymapper_worker.cpp:2509–2525  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2507}
2508
2509void QKeyMapper_Worker::postMouseMoveToPoint(HWND hwnd, const QPoint &mousepoint)
2510{
2511 POINT newPos;
2512 newPos.x = mousepoint.x();
2513 newPos.y = mousepoint.y();
2514
2515 LPARAM lParam = MAKELPARAM(newPos.x, newPos.y);
2516 SendMessageTimeout(
2517 hwnd,
2518 WM_MOUSEMOVE,
2519 0,
2520 lParam,
2521 SMTO_ABORTIFHUNG | SMTO_BLOCK | SMTO_ERRORONEXIT,
2522 SENDMESSAGE_TIMEOUT,
2523 nullptr
2524 );
2525}
2526
2527void QKeyMapper_Worker::sendKeyboardInput(V_KEYCODE vkeycode, int keyupdown)
2528{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected