Skip to content

Commit 6cf96e2

Browse files
committed
Merge pull request #507 from fodinabor/InputFixes
Fix mouse input lag while keyboard input - old projects should update th...
2 parents d26ec50 + 5a11a4b commit 6cf96e2

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

Assets/Templates/C++/Windows/PolycodeTemplate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLi
1212

1313
MSG Msg;
1414
do {
15-
if(PeekMessage(&Msg, NULL, 0,0,PM_REMOVE)) {
15+
while (PeekMessage(&Msg, NULL, 0, 0, PM_REMOVE)) {
1616
TranslateMessage(&Msg);
1717
DispatchMessage(&Msg);
1818
}

Examples/C++/Build/Windows/PolycodeExamples/PolycodeExample.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLi
1212

1313
MSG Msg;
1414
do {
15-
if(PeekMessage(&Msg, NULL, 0,0,PM_REMOVE)) {
15+
while (PeekMessage(&Msg, NULL, 0, 0, PM_REMOVE)) {
1616
TranslateMessage(&Msg);
1717
DispatchMessage(&Msg);
1818
}

IDE/Build/Windows/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLi
8888

8989
MSG Msg;
9090
do {
91-
if(PeekMessage(&Msg, NULL, 0,0,PM_REMOVE)) {
91+
while (PeekMessage(&Msg, NULL, 0, 0, PM_REMOVE)) {
9292
TranslateMessage(&Msg);
9393
DispatchMessage(&Msg);
9494
}

IDE/Build/Windows2013/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLi
9292

9393
MSG Msg;
9494
do {
95-
if(PeekMessage(&Msg, NULL, 0,0,PM_REMOVE)) {
95+
while (PeekMessage(&Msg, NULL, 0, 0, PM_REMOVE)) {
9696

9797
if (!TranslateAccelerator(view->hwnd, view->haccel, &Msg)) {
9898
TranslateMessage(&Msg);

Player/Build/MSVC/PolycodePlayer/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLi
7777
MSG Msg;
7878

7979
do {
80-
if(PeekMessage(&Msg, NULL, 0,0,PM_REMOVE)) {
80+
while (PeekMessage(&Msg, NULL, 0, 0, PM_REMOVE)) {
8181
TranslateMessage(&Msg);
8282
DispatchMessage(&Msg);
8383
}

Player/Contents/Platform/Windows/Standalone/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLi
3737
MSG Msg;
3838

3939
do {
40-
if(PeekMessage(&Msg, NULL, 0,0,PM_REMOVE)) {
40+
while (PeekMessage(&Msg, NULL, 0, 0, PM_REMOVE)) {
4141
TranslateMessage(&Msg);
4242
DispatchMessage(&Msg);
4343
}

Player/Contents/Platform/Windows/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLi
4848
MSG Msg;
4949

5050
do {
51-
if(PeekMessage(&Msg, NULL, 0,0,PM_REMOVE)) {
51+
while (PeekMessage(&Msg, NULL, 0, 0, PM_REMOVE)) {
5252
TranslateMessage(&Msg);
5353
DispatchMessage(&Msg);
5454
}

0 commit comments

Comments
 (0)