touch

TouchesBegan on specific object

hi all, I've been searching on google for that , but didn't found any answer. I want to use TouchesBegan but on a specific object, like a textview, a label, ... I've tried to replace "any object" by the pointer of my object but it doesn't work. Is there on other way to detect the touch on a object with a method , in witch I can tell a...

Got negative number on iPhone touch event

I use following code to detect touch event. - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { UITouch *touch = [touches anyObject]; CGPoint touchPoint = [touch locationInView:self]; NSInteger nData[MESSAGE_DATA_LENGTH]; [self generateTouchEvent:touches withEvent:event Data:nData]; KWApp_touchMove...

Altering the Center of Rotation of a ScatterViewItem

By default, when manipulating a ScatterViewItem control it will rotate about its own center point. Is there any way to alter this such that the control rotates about another point, for example rotate about its own top left corner? ...

Touch screen supported API for desktop development in Java Swing?

Hi all I'm developing a system that will eventually be implemented on a touch-screen supported machines such as HP Touchsmart. Are there any relevant references in java swing api that support flicking pages to scroll up/down (such as in iphone/android phone)? Any general references to any swing api that support touch/multi-touch are a...

Android touch events

I want to be able to touch (and hold) the screen, and have an event be triggered by this. This is what I have so far. class Player extends SurfaceView implements SurfaceHolder.Callback { public boolean onTouchEvent(MotionEvent event) { return true; } } Unfortunately this only recognizes when the touch is 'movin...

Tapping a UIScrollView to hide the keyboard?

(I posted this before anonymously, but then couldn't use the same computer again, so I'm posting it from my account now. Sorry to the guy who answered before.) I'm working on an iPhone app which involves typing stuff into a UITextView, which adds content to a UITableView. The problem is, I need to be able to close the keyboard when the ...

UIPicker detect tap / touch on currently selected row

Okay guys, I have a UIPickerView and I want to do something when the user TAPS the currently selected row. I have it working right now where if they tap a row which is NOT selected, it rotates to the selected center view. However, when they tap this already selected row, the method didSelectRow is not called. I need something that execu...

Need help in animating a Wheel on iphone

I am doing an application in iphone that need to spin the Dart Wheel when I drag on it. The view will have a dart wheel image and when we drag the wheel it spins and slowly it stops. Can any one help me in doing this animation. ...

Portrait Orientation is losing touch input.

I'm making a universal apps with auto rotation, and I'm only using landscape left and right. When I rotate the iPhone to the portrait down position, I can see what looks like a window underneath the app rotating and I no longer get touch events. In all the shouldAutoRotate functions I'm making sure only return true for landscape, and t...

iPad landscape-only app not responding to touches near the bottom of the screen

Hi, I’m an experienced developer, but relatively new to iOS. I’m having some trouble with an iPad App, where my views are not responding to button touches in the bottom third of the screen. Touches on other buttons are working fine, so I know my views are getting hooked up properly when they’re loaded (I’ve created them in IB.) I get ...

Flick/swipe more than just images with jQTouch photo gallery extension

The jQTouch photo gallery extension (demo) is fantastic, but it only works for images (<img>s). I would like to have the same flicking/swiping effect with multiple "page" (<div>s). Has anyone tried to tweak this extension to make it more general, so it works with more than just images? Or, is there any other library (e.g. jQuery plugins...

Touch events, not limited to a specific view

How can I use touch events not limited to a specific view? I want to use those events for an background app and found out that I only can enable touch events for a view by using setAcceptsTouchEvents: Thanks in advance, Philip ...

j2me touch gui looking like android

Hello i would like to remake a program i made for android in android it looks pretty nice and is very touch friendly now i need to make it for symbian what would be the best approach to achieve similar graphics and functionality i tried searching in j2me but the graphics look so very outdated :( here are some screens of the android i...

TouchesEnded event

Hi, I have created a view which has an object img which is a subclass of UIImageView and I have added the touchesEnded method to the img class. But when I click on the img class object, the touchesEnded event is not triggered. Does anyone have an idea what may be wrong, please? Thank you! ...

html5 iphone preventDefault() doesnt stop from "copy" to appear upon a touch

I have this code, which shows the coordinates of the touch as the user drags his finger across the screen. The issue is that is I touch the screen for too long, it selects the entire canvas and displays the "copy" bubble, which is the default behaviour. How do I get rid of that? <html> <head> <script type="application/javascript"> fu...

Touch Events in UIScroll View in iPhone

Hi friends, I have created scroll view in my view controller and set the buttons in the scroll view. I have set the scroll view between the two images. The buttons are scrolling horizontally. Now i want to enable and disable the images. For Eg: Initially left images are to be hidden, once moving the button horizontally and enable right ...

Android handle all input key an touch event

How handle all input key an touch event incoming to my Android application? Is any one place where I can catch all this events? ...

What happened to MooTouch?

In March/April of this year there was some talk about a new mobile framework based on MooTools, MooTouch. It looked like a great and very promising alternative to jQTouch. The framework was developed by Jacky Nguyen (see his LinkedIn profile) who has apparently joined Sencha last July. He is not mentioned anywhere on the Sencha website ...

How to handle exact UITouch of image?

I have an image for example triangle and place it inside UIImageView, and I have a touch and drag application, I can already drag the triangle but my problem is I can still drag the triangle even if I'm not actually touching the triangle, (Im touching the upper left of the triangle image) I think this is because the UIImageView itself is...

Android: how to make a "pie Chart" with touchable wedges And the whole thing can rotate..

hey Guys, well, the title says it all: I have need to make a sort of "Pie Chart"-style circular display. the wedges of the chart have to be touchable, and the whole circle has to be able to spin 360deg.. I'm still an android noob, but I'm guessing that I can't do this with a Layout.. right? preferably, the wedges would be image ...