Actually, I'm working with openGL. So, it looks like I'm supposed to set up a GestureListener and override onFling to increment Y or X. Then use Y and X from there to rotate my object and slow it down and stop it using a math function.
On Feb 20, 1:28 pm, joshbeck <[email protected]> wrote: > Ok, I've done some reading and I have a working theory: > > It's done using something this: > > @Override > public boolean onKeyDown(int keyCode, KeyEvent event) { > switch (keyCode) > { > > case KeyEvent.KEYCODE_DPAD_DOWN: > (increment static value X by Y ); > break; > > { > > This way a faster swipe results in a higher value? > > Sound logical or am I off? > > Thanks again, > Josh Beck > > On Feb 20, 12:52 pm, joshbeck <[email protected]> wrote: > > > > > Hello all, > > > I'm looking for a starting point on this: > > > Here's a good example: > > -When you create a 'ListView', as the user swipes up or down the > > list scrolls > > in accordance with how fast the user swiped. Give it a fast swipe, and > > the list scrolls farther, faster. > > > Same thing is true within the web browser. > > > Now, I've downloaded the native source code for OS. So, I have that > > as a resource to > > poke around and see exactly how this is being accompished natively. > > > Question: > > > Is swipe direction/velocity documented anywhere. --Example code would > > be helpful. > > > I'd like to start by applying an OnTouchEvent(); to a 2D canvas and > > simply rotate > > the canvas based on swipe velocity. > > > Any tips are appreciated. > > > Thanks, > > Josh Beck -- You received this message because you are subscribed to the Google Groups "Android Developers" 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-developers?hl=en

