Closed nhrones closed 1 year ago
Reading about GLFW3, I found this;
The key input facility was never meant for text input, although using it that way worked
slightly better in GLFW 2. If you were using it to input text, you should be using the
character callback instead, on both GLFW 2 and 3. This will give you the characters
being input, as opposed to the keys being pressed.
Do you know what the character callback
they mention is?
Can DWM use that to provide a cleaner text
input?
You can listen for input
event which has data
parameter that corresponds to the text input.
I'm converting a scaled down copy of my Surface
framework to a Deno lib specifically for use in skia-canvas
, I'll let you know when its ready for consumption.
Works great! Thanks.
I'm coding a
TextBox
canvas widget and having input issues.The
keydown
,keyup
events produce very rawkey
,keycode
values. Although the shift keys produce ashiftKey
flag, the condition ofcapslock
is not provided.All alpha keys are coded as capital-chars (as if shifted), and then number keys produce numbers (unshifted).
I've written a basic keyboard module that tries to correct this, but I wonder if you know of any lib that already handles GLFW keys correctly! Also, I'm working on Windows, will my code have issues with Mac keyboard?