[android-developers] Re: Events on GLSurfaceView
I went to http://code.google.com/p/cocos2d-android/ but I don't see
where to download the code. Where is it?
On Jan 17, 8:26 am, Robert Green <rbgrn....@gmail.com> wrote:
> That makes me think that you are now getting key events but aren't
> handling them properly. If you always return true, the system will
> not handle those keys anymore. I'm just shooting in the dark,
> though. Is there any way you could post some code for me to see? I'm
> pretty sure you need to declare the view as focusable to get those
> events because without focus, a view won't receive events.
>
> I actually don't handle events in my GLSurfaceViews anymore. I do it
> in the activity and queue the events so that the UI thread returns
> immediately.
>
> On Jan 16, 5:56 pm, Peter Eastman <peter.east...@gmail.com> wrote:
>
> > On Jan 16, 3:27 pm, Robert Green <rbgrn....@gmail.com> wrote:
>
> > > Remember to call setFocusableInTouchMode(true); in the view if you
> > > want to receive focus and key/touch events.
>
> > I wasn't doing that. I just tried it though, and it didn't fix the
> > problem. Instead, it disabled the Back and Menu keys...
>
> > Peter
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home