(Apple) Refactor apple_input_data_t