MCPcopy Create free account
hub / github.com/clementgallet/libTAS / xcb_query_pointer_reply

Function xcb_query_pointer_reply

src/library/inputs/xcbpointer.cpp:49–64  ·  view source on GitHub ↗

Override */

Source from the content-addressed store, hash-verified

47}
48
49/* Override */ xcb_query_pointer_reply_t *xcb_query_pointer_reply (xcb_connection_t *c, xcb_query_pointer_cookie_t cookie, xcb_generic_error_t **e)
50{
51 LOGTRACE(LCF_MOUSE);
52 auto* reply = static_cast<xcb_query_pointer_reply_t*>(malloc(sizeof(xcb_query_pointer_reply_t)));
53 reply->response_type = XCB_QUERY_POINTER;
54 reply->sequence = 0;
55 reply->same_screen = true;
56 // reply->root = ; TODO
57 reply->root_x = Inputs::game_ai.pointer.x;
58 reply->root_y = Inputs::game_ai.pointer.y;
59 reply->child = XlibGameWindow::get();
60 reply->win_x = Inputs::game_ai.pointer.x;
61 reply->win_y = Inputs::game_ai.pointer.y;
62 reply->mask = SingleInput::toXlibPointerMask(Inputs::game_ai.pointer.mask);
63 return reply;
64}
65
66/* Override */ xcb_void_cookie_t
67xcb_warp_pointer_checked (xcb_connection_t *c,

Callers 1

buildAllInputsMethod · 0.85

Calls 1

mallocFunction · 0.85

Tested by

no test coverage detected