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

Is there any way to prevent the released event from firing? #25

Open
compscitwilight opened this issue Sep 19, 2022 · 1 comment
Open

Comments

@compscitwilight
Copy link

const gkm = require("gkm")

gkm.events.on("key.*", function (data) {
    if (data.includes("Undefined")) return
    console.log(data)
})

image

Using the "key.*" event also detects when a key is released. How can I prevent this from happening?

@Moonlite-Kitsune
Copy link

through testing i've found that key.released works for detecting key presses and key.pressed is helpful for rapid fire the question itself is vague and the documentation for this system is lacking if you need something else in particular could you please clarify in a response

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