Hi, I have the same issue. doNotCaptureKeyboard works and now I can scroll up/down with the arrow buttons. But scrolling up/down with mouse wheel does not work. Any ideas how to enable that? Or do I have to mess with SDL internals? :(
Max On Wednesday, April 30, 2014 4:20:53 AM UTC+7, Alon Zakai wrote: > > The SDL behavior is usually better as you don't want keys to work normally > in a game, you want to capture all key input yourself. So I suspect this is > not intentional in glfw. > > You can customize it in SDL by defining Module.doNotCaptureKeyboard which > will not capture the keyboard at all. Or, you could not call > preventDefault() in the handler, there isn't an option for that currently. > > - Alon > > > > On Sat, Apr 26, 2014 at 3:46 PM, Tomáš Rychnovský <tomas.ry...@gmail.com > <javascript:>> wrote: > >> Hi, >> >> whenever I run code (including examples) that use SDL, the browser >> (Firefox, Chrome) does not respond to any other key events. So, it is not >> possible to start debugger for example (CTRL+SHIFT+S in Firefox or >> CTRL+SHIFT+J in Chrome). Also pressing Alt in Firefox deos not pop menu bar. >> >> When using for example glfw, instead of SDL, the browser is responding >> to key presses. >> >> Is there some way how to achieve the same when using SDL? >> >> Thanks, >> Tomas >> >> -- >> You received this message because you are subscribed to the Google Groups >> "emscripten-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to emscripten-discuss+unsubscr...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-discuss+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.