MCPcopy Create free account
hub / github.com/DFHack/dfhack / update_mouse_pos

Function update_mouse_pos

plugins/edgescroll.cpp:104–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104static bool update_mouse_pos() {
105 if (callback_queued.load())
106 return false; // Queued callback not complete, check back later
107
108 // Queued callback complete, save the results and enqueue again
109 state = queued;
110 queued = {};
111 DFHack::runOnRenderThread(render_thread_cb);
112 callback_queued.store(true);
113 return true;
114}
115
116// Apply scroll whilst maintaining boundaries
117template<typename T>

Callers 1

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected