I want to create an app that triggers an event when the button in an earphone/headphone is clicked.
For example, in YouTube (or most music apps), the button press cause the play/pause () event. Also, long click & double click trigger some other events.
So, is it possible in MIT AI2, maybe using an extension?