MCPcopy Create free account
hub / github.com/WallBreaker2/op / LockInput

Function LockInput

libop/hook/InputHookClient.cpp:195–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193}
194
195long LockInput(HWND hwnd, int lock) {
196 if (lock < 0 || lock > 3)
197 return 0;
198 if (!hwnd)
199 return lock == 0 ? 1 : 0;
200
201 std::lock_guard<std::mutex> guard(g_mutex);
202 if (g_bind_refs.find(hwnd) == g_bind_refs.end())
203 return lock == 0 ? 1 : 0;
204
205 return call_set_input_lock(hwnd, lock);
206}
207
208bool GetCursorShape(HWND hwnd, unsigned long long &hash, unsigned long long &meta) {
209 if (!hwnd)

Callers 2

LockInputMethod · 0.85
reset_bind_stateMethod · 0.85

Calls 3

call_set_input_lockFunction · 0.85
findMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected