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

feat(extra-natives): add REGISTER_RAW_KEYMAP and REMAP_RAW_KEY_MAP #3148

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

AvarianKnight
Copy link
Contributor

Goal of this PR

This is a continuation of #3147

This adds a way for users to have listeners for raw keys with REGISTER_RAW_KEYMAP and allow the user to rebind them with REMAP_RAW_KEYMAP, this mainly an alternative for REGISTER_KEY_MAPPING until its implemented for RedM.

This PR applies to the following area(s)

FiveM (not tested), RedM

Successfully tested on

Game builds: b1491

Platforms: Windows, Linux

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.

@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 Feb 11, 2025
@AvarianKnight AvarianKnight force-pushed the feat/raw-keymappings branch 2 times, most recently from d739a37 to f619e38 Compare February 12, 2025 14:39
This also merges the two implementations into one file since the only
thing that differs between them is the hooking.
This adds `REGISTER_RAW_KEYMAP` mainly for use in RedM, so they can have
a makeshift way to do keymappings and also handle their own rebindings.
@github-actions github-actions bot added triage Needs a preliminary assessment to determine the urgency and required action invalid Requires changes before it's considered valid and can be (re)triaged and removed invalid Requires changes before it's considered valid and can be (re)triaged triage Needs a preliminary assessment to determine the urgency and required action labels Feb 12, 2025
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