Skip to content

Conversation

@AvarianKnight
Copy link
Contributor

@AvarianKnight AvarianKnight commented Jan 13, 2026

Goal of this PR

Fix Ctrl+A sporadically not being usable on RedM and fixes neteventlog 1 (or other windows that get moved outside of the main viewport) being forced to be permanently dragged even when it shouldn't be.

How is this PR achieving the goal

We use GetAsyncKeyState instead of GetKeyState, since GetKeyState relies on the message queue, which we consume before this.

I'm not sure why this works on FiveM, it might be related to the OffThreadWindowing code that's used That code is practically no-oped.

This PR applies to the following area(s)

RedM

Successfully tested on

Game builds: ..

Platforms: Windows

Checklist

  • Code compiles and has been tested successfully.
  • Code explains itself well and/or is documented.
  • My commit message explains what the changes do and what they are for.
  • No extra compilation warnings are added by these changes.

Fixes issues

@github-actions github-actions bot added RedM Issues/PRs related to RedM invalid Requires changes before it's considered valid and can be (re)triaged labels Jan 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

invalid Requires changes before it's considered valid and can be (re)triaged RedM Issues/PRs related to RedM

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant