It's SDL2. 
Just had a look at the test cases for 1.35 and I do exactly as in the file 
'sdl2_text.c' - with the exception that I don't include  SDL2/SDL.h (does 
not exist) and cannot create my window with 'SDL_CreateWindowAndRenderer' 
(does not exist). Instead I do as follows (I've tried different 
combinations of SDL_WINDOW flags) :

sdl.win = SDL_CreateWindow ("Demo Window " __DATE__ " " __TIME__,
    SDL_WINDOWPOS_CENTERED,
                SDL_WINDOWPOS_CENTERED, sdl.sdlMode.w,
                sdl.sdlMode.h,
                SDL_WINDOW_SHOWN | SDL_WINDOW_MAXIMIZED | 
SDL_WINDOW_INPUT_FOCUS | SDL_WINDOW_INPUT_GRABBED);
   
    sdl.renderer = SDL_CreateRenderer (sdl.win, -1, SDL_RENDERER_SOFTWARE);
    


Den torsdag den 5. januar 2017 kl. 11.31.37 UTC+1 skrev Thomas Arnbjerg:
>
> Hi all,
>
> I'm writing an SDL application and want to allow the user to type in text. 
> I get the SDL_TEXTINPUT events as expected but  
> SDL_TextInputEvent::text does not contain the key pressed. The value is 
> fixed at a meaningless value (first 4 bytes have the fixed values 1000).
>
>
> During initialization I call:
>
>
>  SDL_EnableUNICODE (SDL_ENABLE);
>
>
> - and
>
>
> SDL_StartTextInput ();
>
>
> I'm using the pre-built Emscripten 1.35 on Windows 7 and Firefox.
>
>
> Any ideas?
>
>
> Best
>
>
> Thomas
>
>
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to