| Reply | « Previous Thread | Next Thread » |
|
Hi
can anybody help me, please? I'm developing an arcade game. I got my sprite movin' but I can't manage two (or more) keys being pressed by the player. For example going left-upward while firing. I got my routine that works fine on the Default Color emulator in SunOne Studio 4 CE Update1, but not on the Nokia 7210 emulator. To let you understand I tried this, Pressed LEFT key and kept pressed (the sprite moves left), then pressed UP key and kept pressed (the sprite keeps on moving left), released LEFT key (the sprite starts moving up). It seems like only one event at a time is processed. I thought that's because the keyPressed method runs in the main thread of the Listener, so I tried to use a separate Thread, but nothing changes. I don't understand why the same key pressing sequence as above works as should do in the S1 emulator. Thanks in advance to any help. Davide. |
|
not all nokia phones can handle simulateous key presses...
I saw a nokia comment about it in a game programming .pdf document... lnx |
|
I'm also developing the same kind of game for the 7210 and have reached the same limitation.
One solution that I think of (but haven't allready tryed) was to associate a timer with each game action that would consider that the key was still pressed for some time even if it was already released, this allow the ship to move and fire at the same time. |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|