Closed vtereshkov closed 4 months ago
Weird
Which demo do you mean? The one in samples/rect
allows you to move with the mouse.
I mean the web playground.
Ah
Seems to be a Sokol issue, if you use isPressedRepeatc
instead of isPressedc
it will work, seems to send "repeat" keycodes all the time.
Or rather an emscripten issue (https://github.com/emscripten-core/emscripten/pull/22201), I can't see why it would behave this way, It seems that it sends key_repeat all the time, instead of just after the first time, which registers it incorrectly. I will make a temporary hot fix for this until they fix emscripten, but I'm still not sure where is the issue coming from here.
Can you reproduce it with a local build? I couldn't. Everything was OK when I built it and ran on localhost.
Can you reproduce it with a local build? I couldn't. Everything was OK when I built it and ran on localhost.
Yeah, it seems to be related to some recent changes in emscripten - https://github.com/emscripten-core/emscripten/blob/main/ChangeLog.md#3162---070224 I specified a version that should work.
I see. I have 3.1.56 on my laptop.
Downgrading worked.
The rectangle doesn't respond to keyboard input.