Search code examples
iosapiinputtouchlow-level

What's the most low-level official touch input API which can be accessed from developers? (iPhone)


What's the most low-level official touch input API which can be accessed from developers? (iPhone)


Solution

  • 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*/
    }