Skip to content

Commit 7429263

Browse files
committed
chore: remove unused lbutton_down_point variable
1 parent 533b2d9 commit 7429263

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

src/inputhook.cc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ std::vector<HandlerEntry<MouseHandler>> mouse_handlers;
2020

2121
HHOOK keyboard_hook = nullptr;
2222
HHOOK mouse_hook = nullptr;
23-
POINT lbutton_down_point = {-1, -1};
2423

2524
LRESULT CALLBACK KeyboardProc(int nCode, WPARAM wParam, LPARAM lParam) {
2625
if (nCode == HC_ACTION) {
@@ -48,10 +47,6 @@ LRESULT CALLBACK MouseProc(int nCode, WPARAM wParam, LPARAM lParam) {
4847
return CallNextHookEx(mouse_hook, nCode, wParam, lParam);
4948
}
5049

51-
if (wParam == WM_LBUTTONDOWN) {
52-
lbutton_down_point = pmouse->pt;
53-
}
54-
5550
for (const auto& entry : mouse_handlers) {
5651
if (entry.handler(wParam, lParam)) {
5752
return 1;

0 commit comments

Comments
 (0)