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

hotkey config can't handle input from f13-f24 keys #162

Open
TheoCGaming opened this issue Aug 27, 2024 · 1 comment
Open

hotkey config can't handle input from f13-f24 keys #162

TheoCGaming opened this issue Aug 27, 2024 · 1 comment

Comments

@TheoCGaming
Copy link

os: arch linux 6.10.6-zen1-1-zen
keyboard: unicomp pc-122 over ps/2 (custom xmodmap and setkeycodes script, system recognizes all keys properly and should not have any issues with interpreting the scancodes as proper keys)
version: 0.18.4-alpha.1 on minecraft 1.20.4
used with: litematica 0.17.3

upon attempting to use keys from f13 to f24 to set a hotkey, no input is registered at all. other keys work completely fine.

@maruohon
Copy link
Owner

Do those keys work in vanilla hotkeys? Currently malilib doesn't use the scan codes, but rather the key codes for the hotkey system (which also causes issues like the shown keys only matching on the QWERTY layout).

I'd be interested to see the output if you enable the Debug -> keybindDebugging option (A + C to access the malilib config menu, or via the Mod Menu mod list) and then press those keys and look in the game console/log for the output.

For example here is the output I get for F9 - F12:

[19:29:53] [Render thread/INFO]: PRESS F9 (keyCode: 298, scanCode: 75, modifiers: 0), held keys: F9 (298)
[19:29:53] [Render thread/INFO]: RELEASE F9 (keyCode: 298, scanCode: 75, modifiers: 0), held keys: <none>
[19:29:53] [Render thread/INFO]: PRESS F10 (keyCode: 299, scanCode: 76, modifiers: 0), held keys: F10 (299)
[19:29:53] [Render thread/INFO]: RELEASE F10 (keyCode: 299, scanCode: 76, modifiers: 0), held keys: <none>
[19:29:54] [Render thread/INFO]: PRESS F11 (keyCode: 300, scanCode: 95, modifiers: 0), held keys: F11 (300)
[19:29:54] [Render thread/INFO]: RELEASE F11 (keyCode: 300, scanCode: 95, modifiers: 0), held keys: <none>
[19:29:57] [Render thread/INFO]: PRESS F12 (keyCode: 301, scanCode: 96, modifiers: 0), held keys: F12 (301)
[19:29:57] [Render thread/INFO]: RELEASE F12 (keyCode: 301, scanCode: 96, modifiers: 0), held keys: <none>

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

No branches or pull requests

2 participants