What's the most low-level official touch input API which can be accessed from developers? (iPhone)
views:
116answers:
2
+1
Q:
What's the most low-level official touch input API which can be accessed from developers? (iPhone)
+2
A:
The touches objects inside of a UIResponder class.
You have access to touchesMoved, touchesBegan, and touchesEnded. You can do just about anything with these.
Charybdis
2010-02-18 20:29:37
-[UIApplication sendEvent:] is lower-level
rpetrich
2010-02-19 06:14:55
+1
A:
According to my experience the lowest level where you can intercept and handle all the touches is UIApplication (its derived from UIResponder). There is nothing really hard here, as you only have to override:
- (void)sendEvent:(UIEvent *)event { [super sendEvent:anEvent]; /* Place your custom */ /* processing code here*/ }
Mike S.
2010-02-18 21:11:20