Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MGS2/MGS3: added patches to disable background input (KB/M only) #32

Merged
merged 1 commit into from
Nov 1, 2023

Conversation

emoose
Copy link
Contributor

@emoose emoose commented Nov 1, 2023

Fixes #27

Seems the game already had code to disable inputs when in background, but a variable needed for it would only be setup if game was in fullscreen mode, added a patch to remove that check & also patched out ShowWindow & SetFullscreenState calls that would have been ran because the check was removed, otherwise those would interfere with windowed mode.

Looks like controller input doesn't check this same variable though so this only affects keyboard/mouse atm, maybe later on could look into where game uses XInput and add a check for the same variable there too.

Tested with MGS2/3, seems to work fine with both, sigs seem to match with MG1/2 but haven't checked that yet.

@emoose emoose force-pushed the background-input-fix branch 2 times, most recently from 3ebece9 to f8bf98d Compare November 1, 2023 02:36
@Lyall
Copy link
Owner

Lyall commented Nov 1, 2023

Seems to work fine in MG1/MG2 as well.

@Lyall Lyall merged commit dd5c89e into Lyall:master Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Disable Background Input
2 participants