这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@sloganking
Copy link
Contributor

This will fix #127. This pull request currently works with Windows support. However, Mac and Linux need their key codes figured out and someone to test it on their machines. I manually tested and this pull request is working on Windows as I imported it into one of my own projects.

  • Windows
  • MacOS
  • Linux

@sloganking
Copy link
Contributor Author

// https://docs.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes

This repo references Windows documentation that states its keycodes. However, the Linux and macOS portions don't link to documentation that states the keycodes. Is this tested and found manually, or can we find the keycodes from an official source?

@Narsil
Copy link
Owner

Narsil commented May 20, 2025

Thanks for this. I agree looking them up in other OSes would be nice, but since I don't own a keyboard with such high F I'm not going to bother that much (the number are defined in certain locations in header files of systems, but the numbering is sometimes inconsistent between the kernels, the library like X11, and the physical mapping of the keyboard driver of a given keyboard, I tend to usually manually confirm the numbers whenever possible, and I should have left the breadcrumbs on where to look for in said files).

Regardless let's merge it for now, I feel like those keys are quite rare anyway.

@Narsil Narsil merged commit 4532c6e into Narsil:main May 20, 2025
julgmz pushed a commit to heyito/rdev that referenced this pull request Sep 10, 2025
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.

Add F13-F24 to rdev::Key

2 participants