Hello! I am trying to create my own keyboard library, but I have hit a problem in that some of the keys on my keyboard always return 0 when they are pressed. These keys are the "\" and "#" key on my UK layout keyboard.
Here is my test code:
while true do
local _, _, _, key = event.pull("key_down")
print(key)
end
This always returns 0 when backslash or hash is pressed. If anybody knows why / how I can distinguish between those two keys that would be awesome.
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Hello! I am trying to create my own keyboard library, but I have hit a problem in that some of the keys on my keyboard always return 0 when they are pressed. These keys are the "\" and "#" key on my UK layout keyboard.
Here is my test code:
This always returns 0 when backslash or hash is pressed. If anybody knows why / how I can distinguish between those two keys that would be awesome.
Link to post
Share on other sites