Okay. In my project I am trying to have an OnTouchEvent cause a change in my Renderer thread but I can't figure out how to get this working. I was having the touch event change a boolean value to put the draw method onto the proper trail for what to draw, but there is a 3 second delay before it decides to check the boolean value. When I was working with canvas I was able to do a Synchronized action with the gamethread, but alas I cannot figure out how to get this to mesh with my renderer, as there are several things I don't know how to substitute.
Also, I am getting a bit tired of google's sample code not actually being working code, and just an idea to work off. For example I want to try to use queueEvent, but going off of this example: http://android-developers.blogspot.com/2009/04/introducing-glsurfaceview.html The code here public boolean onTouchEvent(final MotionEvent event) { queueEvent(new Runnable(){ public void run() { mRenderer.setColor(event.getX() / getWidth(), event.getY() / getHeight(), 1.0f); }}); return true; } does not not work. I get the following error "The method queueEvent(new Runnable(){}) is undefined for the type Main" and if I make a method named that (which I don't think is what I should be doing as the example listed doesn't do this) then all it's doing is creating another method in the same thread and there is no progress (correct me if I am wrong, and I am probably wrong). I've tried looking for examples of how to use queueEvent and all I can't find a proper explanation. Or if I could find an example of syncing an Ontouchevent to the renderer thread then I could work from there. I don't have too great an understanding of a lot of things. I have been stuck many times before on problems but I can usually figure them out and eventually learn how they work. Basically I don't want to get a generic "You should learn Java/OpenGL/Whatever before you try this" as this is the last obstacle in my way (as far as I can see) before all the rest of the work is math and logic, and I don't want to spend money + time pouring over books for the answer to this question. If someone could please help I would be grateful. I am also willing to offer more information if needed. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en