Override */
| 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 |
| 67 | xcb_warp_pointer_checked (xcb_connection_t *c, |
no test coverage detected