Skip to content

Commit

Permalink
make windows happy
Browse files Browse the repository at this point in the history
  • Loading branch information
theyareonit committed Oct 3, 2024
1 parent 5dc9215 commit fafc72a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v1.2.3

* Fix "Reduce Mouse Lag" option causing the game to pause

# v1.2.2

* Add "Reduce Mouse Lag" option to improve performance with high polling rate mice
Expand Down
6 changes: 3 additions & 3 deletions mod.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"geode": "3.7.1",
"geode": "3.8.1",
"gd": {
"win": "2.206"
},
"version": "v1.2.2",
"version": "v1.2.3",
"id": "syzzi.click_between_frames",
"name": "Click Between Frames",
"developer": "syzzi",
Expand Down Expand Up @@ -62,7 +62,7 @@
},
"mouse-fix": {
"name": "Reduce Mouse Lag",
"description": "Reduce lag when using high polling rate mice.\nRequires CBF to be enabled.\nExperimental, may break things like Mega Hack while unpaused in levels.",
"description": "Reduce lag when using high polling rate mice.\nRequires CBF to be enabled.\nExperimental, may break things.",
"type": "bool",
"default": false
},
Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ class $modify(CCEGLView) {
}
else if (mouseFix && !skipUpdate) {
MSG msg;
while (PeekMessage(&msg, NULL, WM_MOUSEFIRST, WM_MOUSELAST, PM_REMOVE)); // clear mouse inputs from message queue
while (PeekMessage(&msg, NULL, WM_MOUSEFIRST + 1, WM_MOUSELAST, PM_REMOVE)); // clear mouse inputs from message queue
}

CCEGLView::pollEvents();
Expand Down

0 comments on commit fafc72a

Please sign in to comment.