[Android Q&A, Help & Troubleshooting] myxal:
Re: Buttons for Music app control?

On your 3.11, I get nothing on the headset button. Long-press on VolUp/Down produces the following:

^*KeyDown:******action=0 code=24 repeat=0 meta=0 scancode=115 mFlags=8 label='' chars='null' number=''
^*KeyDown:******action=0 code=24 repeat=1 meta=0 scancode=115 mFlags=136 label='' chars='null' number=''
^*KeyDown:******action=0 code=24 repeat=2 meta=0 scancode=115 mFlags=8 label='' chars='null' number=''
^*KeyDown:******action=0 code=24 repeat=3 meta=0 scancode=115 mFlags=8 label='' chars='null' number=''
^*KeyDown:******action=0 code=24 repeat=4 meta=0 scancode=115 mFlags=8 label='' chars='null' number=''
^*KeyDown:******action=0 code=24 repeat=5 meta=0 scancode=115 mFlags=8 label='' chars='null' number=''
^*KeyUp:********action=1 code=24 repeat=0 meta=0 scancode=115 mFlags=8 label='' chars='null' number=''
^*KeyDown:******action=0 code=25 repeat=0 meta=0 scancode=114 mFlags=8 label='' chars='null' number=''
^*KeyDown:******action=0 code=25 repeat=1 meta=0 scancode=114 mFlags=136 label='' chars='null' number=''
^*KeyDown:******action=0 code=25 repeat=2 meta=0 scancode=114 mFlags=8 label='' chars='null' number=''
^*KeyDown:******action=0 code=25 repeat=3 meta=0 scancode=114 mFlags=8 label='' chars='null' number=''
^*KeyDown:******action=0 code=25 repeat=4 meta=0 scancode=114 mFlags=8 label='' chars='null' number=''
^*KeyDown:******action=0 code=25 repeat=5 meta=0 scancode=114 mFlags=8 label='' chars='null' number=''
^*KeyDown:******action=0 code=25 repeat=6 meta=0 scancode=114 mFlags=8 label='' chars='null' number=''
^*KeyUp:********action=1 code=25 repeat=0 meta=0 scancode=114 mFlags=8 label='' chars='null' number=''

I'll post the capture from CM when I get home, but I suppose the big issue is that there's no keyevent at all coming from headset button?

EDIT: CM7.2 capture of longpress on the headset button on ZTE Blade:

Press buttons to see the keycodes:
^*KeyDown:******action=0 code=79 repeat=0 meta=0 scancode=226 mFlags=8 label='' chars='null' number=''
^*KeyDown:******action=0 code=79 repeat=1 meta=0 scancode=226 mFlags=136 label='' chars='null' number=''
^*KeyDown:******action=0 code=79 repeat=2 meta=0 scancode=226 mFlags=8 label='' chars='null' number=''
^*KeyDown:******action=0 code=79 repeat=3 meta=0 scancode=226 mFlags=8 label='' chars='null' number=''
^*KeyDown:******action=0 code=79 repeat=4 meta=0 scancode=226 mFlags=8 label='' chars='null' number=''
^*KeyDown:******action=0 code=79 repeat=5 meta=0 scancode=226 mFlags=8 label='' chars='null' number=''
^*KeyDown:******action=0 code=79 repeat=6 meta=0 scancode=226 mFlags=8 label='' chars='null' number=''
^*KeyDown:******action=0 code=79 repeat=7 meta=0 scancode=226 mFlags=8 label='' chars='null' number=''
^*KeyDown:******action=0 code=79 repeat=8 meta=0 scancode=226 mFlags=8 label='' chars='null' number=''
^*KeyDown:******action=0 code=79 repeat=9 meta=0 scancode=226 mFlags=8 label='' chars='null' number=''
^*KeyDown:******action=0 code=79 repeat=10 meta=0 scancode=226 mFlags=8 label='' chars='null' number=''
^*KeyUp:********action=1 code=79 repeat=0 meta=0 scancode=226 mFlags=8 label='' chars='null' number=''

The VolUp/Down behaved the same way.