(Apple) apple_input.c - cleanups