💬

Community answer

Collected from the ACE community Discord archive around 2020-04-05. It may be informal or outdated — anyone can edit this page to improve it. Original discussion

Detecting specific key presses with InputPressed

🌙 LuaUpdated 2 days ago•0 views
hook.add("InputPressed","",function(key) if key==107 then ... end end) - key codes are GMod KEY_* enum values (107 = KEY_G or similar per wiki keynums).

How to detect a specific key press (key codes)

hook.add("InputPressed","",function(key) if key==107 then ... end end) - key codes are GMod KEY_* enum values (107 = KEY_G or similar per wiki keynums).

Was this article helpful?

See More

Discussion(0)

No comments yet. Be the first to ask a question!

Have a question? Sign in to join the discussion.