Fix mouse input at start when using borderless mode

This commit is contained in:
rebtd7 2021-03-16 09:49:38 -03:00
parent 94be154c77
commit 8898ba5013

View file

@ -205,6 +205,11 @@ void MainContext::ForceWindowActivate(const HWND hWnd) {
PostMessage(hWnd, WM_ACTIVATE, WA_CLICKACTIVE, NULL); PostMessage(hWnd, WM_ACTIVATE, WA_CLICKACTIVE, NULL);
} }
void MainContext::ForceWindowActivate(const HWND hWnd) {
PostMessage(hWnd, WM_ACTIVATE, WA_INACTIVE, NULL);
PostMessage(hWnd, WM_ACTIVATE, WA_CLICKACTIVE, NULL);
}
void MainContext::FF13_OneTimeFixes() { void MainContext::FF13_OneTimeFixes() {
if (IsDXVK()) { if (IsDXVK()) {
@ -319,9 +324,12 @@ void MainContext::FF13_SetFrameRateVariables()
void MainContext::FF13_2_OneTimeFixes() void MainContext::FF13_2_OneTimeFixes()
{ {
ForceWindowActivate(hWndFF13); ForceWindowActivate(hWndFF13);
<<<<<<< HEAD
if (IsDXVK()) { if (IsDXVK()) {
PatchMessageBox(ff13_2_message_box_call_address); PatchMessageBox(ff13_2_message_box_call_address);
} }
=======
>>>>>>> 86eae4b... Fix mouse input at start when using borderless mode
if (*ff13_2_frame_pacer_ptr_address) { if (*ff13_2_frame_pacer_ptr_address) {
**ff13_2_frame_pacer_ptr_address = MAX_FRAME_RATE_LIMIT; **ff13_2_frame_pacer_ptr_address = MAX_FRAME_RATE_LIMIT;