This repository has been archived by the owner on Nov 22, 2024. It is now read-only.
forcing keydown/keyup/mousemove/mousedown events #17
Unanswered
TheExecutionist0
asked this question in
Q&A
Replies: 2 comments 3 replies
-
Just realized that dispatchEvent wont do shit because of isTrusted being set to false and read-only (stupid) |
Beta Was this translation helpful? Give feedback.
0 replies
-
murturtle did something like this in eaglertouch, IDK if it works. I know ur looking for specific keys, tho. function(){ModAPI.mcinstance.$gameSettings.$keyBindForward.$pressed = 0} |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working on a mod that executes "keydown" events through the Gamepad API but the client itself is not picking up those forced events. Do I have to do document.dispatchEvent(...) or is there some sort of other variable I have to do this from?
Beta Was this translation helpful? Give feedback.
All reactions