Skip to content

Commit d729b54

Browse files
committed
Fixed a bug with screenshots and video recording
1 parent fb794c8 commit d729b54

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Source/DSAdvance/DSAdvance.cpp

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

12521252
int main(int argc, char **argv)
12531253
{
1254-
SetConsoleTitle("DSAdvance 1.8");
1254+
SetConsoleTitle("DSAdvance 1.8.1");
12551255
WindowToCenter();
12561256

12571257
// if (false)
@@ -2278,17 +2278,17 @@ int main(int argc, char **argv)
22782278

22792279
KMStickMode(PrimaryGamepad, DontResetInputState, true, DeadZoneAxis(PrimaryGamepad.InputState.stickLX, PrimaryGamepad.Sticks.DeadZoneLeftX), DeadZoneAxis(PrimaryGamepad.InputState.stickLY, PrimaryGamepad.Sticks.DeadZoneLeftY), PrimaryGamepad.KMEmu.LeftStickMode);
22802280
KMStickMode(PrimaryGamepad, DontResetInputState, false, DeadZoneAxis(PrimaryGamepad.InputState.stickRX, PrimaryGamepad.Sticks.DeadZoneRightX), DeadZoneAxis(PrimaryGamepad.InputState.stickRY, PrimaryGamepad.Sticks.DeadZoneRightY), PrimaryGamepad.KMEmu.RightStickMode);
2281-
2282-
// Microphone (custom key)
2283-
if (AppStatus.ScreenshotMode == ScreenShotCustomKeyMode)
2284-
KeyPress(AppStatus.ScreenShotKey, IsSharePressed, &PrimaryGamepad.ButtonsStates.Screenshot, false);
2281+
}
22852282

2286-
// Microphone (screenshots / record)
2287-
else {
2288-
KeyPress(AppStatus.ScreenShotKey, IsScreenshotPressed, &PrimaryGamepad.ButtonsStates.Screenshot, false);
2289-
KeyPress(VK_GAMEBAR_RECORD, IsRecordPressed, &PrimaryGamepad.ButtonsStates.Record, false);
2290-
}
2283+
// After releasing all the buttons you can click on screenshots, so it's here / После отпускания всех кнопок можно нажимать скриншоты, поэтому это здесь
2284+
// Microphone (custom key)
2285+
if (AppStatus.ScreenshotMode == ScreenShotCustomKeyMode)
2286+
KeyPress(AppStatus.ScreenShotKey, IsSharePressed, &PrimaryGamepad.ButtonsStates.Screenshot, false);
22912287

2288+
// Microphone (screenshots / record)
2289+
else {
2290+
KeyPress(AppStatus.ScreenShotKey, IsScreenshotPressed, &PrimaryGamepad.ButtonsStates.Screenshot, false);
2291+
KeyPress(VK_GAMEBAR_RECORD, IsRecordPressed, &PrimaryGamepad.ButtonsStates.Record, false);
22922292
}
22932293

22942294
if (AppStatus.SecondaryGamepadEnabled && SecondaryGamepad.DeviceIndex != -1) {

0 commit comments

Comments
 (0)