README.Symbian
author Sam Lantinga <slouken@libsdl.org>
Thu, 17 Apr 2014 22:36:14 -0700
branchSDL-1.2
changeset 8716 0aade9c0203f
parent 4004 ce8046809062
permissions -rw-r--r--
Fixed bug 2325 - SDL_EnableUNICODE sometimes drops keyboard events completely

Rafał Mużyło

The most annoying part of this bug is that though I've found it in two separate apps, I don't have a trivial testcase for it.

The problem seems to be a condition race, as it's triggered quite randomly (therefore it will be hard to tell whether it really gets fixed, if a probable fix is found).

While it's specific to SDL 1.2, it seems quite similar to the problem described and fixed in http://forums.libsdl.org/viewtopic.php?p=40503.

Now, I should start describing the problem.

A game uses Escape to open menu (the exact key might not be important). Upon opening, it calls SDL_EnableUNICODE(1). Upon closing it calls SDL_EnableUNICODE(0).

I have an IME running.

Game uses SDL_PollEvent to get the events.

If Escape is pressed repeatedly, menu is opened and closed, till it eventually freezes in open state.
"freezes" in this context means "app itself still runs, but no keyboard events are getting delivered (though - for example - mouse events still are)". "getting delivered" should mean "SDL_PollEvent is not receiving any".
If it matters, the last delivered keyboard event is a keypress, the release never arrives.

It seems (no guarantees, due to random nature of the freeze) that unsetting XMODIFIERS (which - AFAIU - will disable IME as far as SDL is concerned) prevents the freeze, therefore the reference to that SDL2 thread.
icculus@3975
     1
==============================================================================
icculus@3975
     2
Using the Simple DirectMedia Layer with S60 3.x / Symbian 9.x
icculus@3975
     3
==============================================================================
icculus@3975
     4
icculus@3975
     5
These instuctions are for people developing for S60 3.x. S60 3.x
icculus@3975
     6
uses Symbian OS so you need S60 SDK.
icculus@3975
     7
icculus@3975
     8
extract "symbian.zip" into this folder.
icculus@3975
     9
icculus@3975
    10
go to symbian folder
icculus@3975
    11
icculus@3975
    12
bldmake bldfiles
icculus@3975
    13
abld build
icculus@3975
    14
icculus@3975
    15
That produces WINSCW and ARMV5 versions of sdl.dll runtime library 
icculus@3975
    16
and sdl.lib for development. 
icculus@4004
    17
The sdlexe.dll/sdlexe.lib and sdlmain.lib are for easy SDL S60
icculus@4004
    18
integration, please see http://www.mbnet.fi/~mertama/sdl.html
icculus@4004
    19
for further info.
icculus@3975
    20
icculus@3975
    21
icculus@3975
    22
icculus@3975
    23