Skip to content

Commit a76f822

Browse files
committed
Maybe the crash is due to power saving? temporary test
1 parent 213e0d2 commit a76f822

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Source/DSAdvance/DSAdvance.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
501501

502502
int main(int argc, char **argv)
503503
{
504-
SetConsoleTitle("DSAdvance 0.9.3");
504+
SetConsoleTitle("DSAdvance 0.9.4");
505505

506506
WNDCLASS AppWndClass = {};
507507
AppWndClass.lpfnWndProc = WindowProc;
@@ -1090,7 +1090,10 @@ int main(int argc, char **argv)
10901090
//ret = vigem_target_x360_update(client, x360, report);
10911091
}
10921092

1093-
if (AppStatus.GamepadEmulationMode == EmuKeyboardAndMouse) XUSB_REPORT_INIT(&report); // Temporary hack(Vigem always, no removal)
1093+
if (AppStatus.GamepadEmulationMode == EmuKeyboardAndMouse) { // Temporary hack(Vigem always, no removal)
1094+
XUSB_REPORT_INIT(&report);
1095+
report.sThumbLX = 1; // Maybe the crash is due to power saving? temporary test
1096+
}
10941097
ret = vigem_target_x360_update(client, x360, report);
10951098

10961099
// Battery level display

0 commit comments

Comments
 (0)