You need to make the view focusable in touch mode. (See
View.setFocusableInTouchMode or android:focusableInTouchMode.)

On Thu, Nov 6, 2008 at 2:53 PM, RichardS
<[EMAIL PROTECTED]> wrote:
>
> Using the host keyboard when running LunarLander in the emulator works
> as expected ie. 'q' and 'w' rotate the ship and up-arrow start/pauses
> the game.
>
> If, however I click the mouse within the view then there is no further
> response to keypresses until I either click one of the Dpad buttons or
> press up-arrow twice!
>
> As my own code - based loosely on the LL code - exhibits the same
> symptoms I would like to know how to overcome this as I need to
> process both screen touch and keypress events.
>
> Can anyone shed some light on this?
>
> >
>



-- 
Romain Guy
www.curious-creature.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to