Headset button access

Hi,

I’m a total n00b to openframeworks. Can someone point me in the right direction on how to get the ‘AndroidAudioExample’ working with the Pause/Play buttons of the headset?

For regular android the answer lives here on this page (http://developer.android.com/training/managing-audio/volume-playback.html), but I have no clue how to do it with OF.

Thanks!

Give a look at this :


And then find out how oF intercerpts the events android, then add how to intercept those which interests you.