I have a regular game loop;
while in thread
wait for next frame
update state (or pass control to somewhere to update its own state)
pass keycode to somewhere to handle it
I had a problem with this, I havent found it yet, the application stops responding and quits both on emulator and on device without any exception throwed when playing with keys. I think it is because keypress and game loop is in different threads. Is it a usual practice to store the key state somewhere and handle them in game loop since it is not possible to check keys in other places in midp 1.0 ?