MCPcopy Create free account
hub / github.com/ErrorAtLine0/infinipaint / set_cursor_pos

Method set_cursor_pos

src/ClientData.cpp:149–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149void ClientData::set_cursor_pos(const NetworkingObjects::NetObjTemporaryPtr<ClientData>& o, Vector2f newPos) {
150 o->cursorPos = newPos;
151 o.send_update_to_all(UNRELIABLE_COMMAND_CHANNEL, [](const NetObjTemporaryPtr<ClientData>& o, cereal::PortableBinaryOutputArchive & a) {
152 a(ClientDataCommand::SET_CURSOR_POS, o->cursorPos);
153 });
154}
155
156void ClientData::set_window_size(const NetworkingObjects::NetObjTemporaryPtr<ClientData>& o, Vector2f newWindowSize) {
157 if(o->windowSize != newWindowSize) {

Callers 1

focus_updateMethod · 0.80

Calls 1

send_update_to_allMethod · 0.45

Tested by

no test coverage detected