The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
emscripten key event
marksibly


Joined: 02 Jul 2015
Posts: 14
Hi,

I'm having a weird problem with sdl2 for emscripten, where keyevents get sent twice for a single keystroke - the first time with repeat=0, the second (immediately after) with repeat=1.


I'm not actually building emscripten, just using the -SDL=2 option when linking so I believe the 'port' lib is being used. I tried building it but failed...


I've done a quick 'pure' emscripten test and key events seem to be working that side, so I'm guessing it's an SDL thing.


Anyone else had this happen?



The same SDL app works fine on desktop windows/macos targets.


Bye,
Mark