Started by
ahznb
on
Topic category: Help with Minecraft modding (Java Edition)
Hi,
I've created a new key binding procedure. The generated procedure only activates on key press and does not have the pressed "key" as dependency, and there are no preset procedures to query key state. I'd like the procedure to query the key press state, like if it has been released, how long the key has been pressed, etc. How do I do that with minimal coding, or better yet without coding?
Thanks!
Edited by ahznb on Wed, 11/27/2019 - 04:35
There is a support ticket requesting this feature for the next updates.
This is what I did in the mean time before the new feature is rolled out:
This will call your keybinding proc repeatedly when your key is pressed or released. It will also pass to your proc a dependency "is_pressed".