Screen touches during game

by Neilz » Tue, 15 Jun 2010 18:46:30 GMT


Sponsored Links
 Hi all.

What's the best way of intercepting screen touches and coords during a
game loop? At this point, I don't have a View from my main.xml file,
so the normal OnTouchEvent doesn't apply, as far as I can tell.

What's the usual procedure for this?

Thanks.

--



Screen touches during game

by Leigh McRae » Wed, 16 Jun 2010 04:58:44 GMT


 I use a double buffered queue.  The event thread receives the touch 
event.  Generates a game specific touch event (allocated from a 
freelist).  Writes the event into a double buffered queue that uses sync 
locks.  Then the main game logic drains the queue and flips the buffer 
before processing the game simulation is updated.


You really doing want the event thread responding to input.

Leigh



Hi all. What's the best way of intercepting screen touches and coords during a game loop? At this point, I don't have a View from my main.xml file, so the normal OnTouchEvent doesn't apply, as far as I can tell. What's the usual procedure for this? Thanks.
-- Leigh McRae www.lonedwarfgames.com --


Sponsored Links


Other Threads

1. Send localization to navigation map

Hi

Does anyone know if there is a possibility to send from Android App
GPS position to external navigation system in order to navigate to
this position?

Example:

I have an application with gas stations in my country. In application
I have GPS positions of gas stations stored. By clicking some button I
want to go to some navigation map app and I want for user to be
navigated by voice and map to this gas stasion.

I know about Google Maps navigation, but it is in beta and works in
US, if I know correctly.

Do you know any Navigation Maps that support external input of
position to navigate to?

-- 

2. Auto complete Text View Doesn't Show Complete Text

Hi guys:
    How can I to deal with the problem  auto complete text view doesn't show
complete text ? Thanks

-- 

3. how to allow user call Gallery to launch or show image and video ?

4. What's the FlashLitePlugin.apk supposed to do?

5. adb install speed is very slow

6. Implement Progress Bar for File Download

7. Monkey tool does not seem to run on all defined packages.